Numeric calculations in go-jsonnet and cpp-jsonnet produce (slightly) different numbers
Open
bug
help wanted
- Dominant language
- Go
- Stars
- 1.8k
- Forks
- 263
- PR merge metrics
- No merged PRs in 30d
Description
I've found some cases where go-jsonnet doesn't match jsonnet.
C++ jsonnet:
```
$ ./jsonnet -e "36.557601928710938 + std.cos(2 * 3.14159265358979323846264338327950288 / 32 * 15) * 2"
34.596031367904473
$ ./jsonnet -e "38.19 + std.cos(2 * 3.14159265358979323846264338327950288 / 32 * 15) * 2"
36.228429439193533
```
go-jsonnet:
```
$ ./jsonnet -e "36.557601928710938 + std.cos(2 * 3.14159265358979323846264338327950288 / 32 * 15) * 2"
34.59603136790448
$ ./jsonnet -e "38.19 + std.cos(2 * 3.14159265358979323846264338327950288 / 32 * 15) * 2"
36.22842943919354
```
Contributor guide
Assessment
This issue has not been assessed yet.