Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

pow (**) returning different values depending on the operating system #139

Open
avelino opened this issue Feb 27, 2021 · 0 comments
Open

Comments

@avelino
Copy link
Member

avelino commented Feb 27, 2021

source:

(** 2.0 1.9)

Linux: <float64>3.732131966147229 test break example
macOS: <float64>3.7321319661472296 test break example

Operaor pow (**) implementation:

rum/runtime/operators.go

Lines 85 to 90 in e2e3704

func OpPow(values ...float64) float64 {
if len(values) < 1 {
panic("Function '**' should take two argument")
}
return math.Pow(values[0], values[1])
}

Observation

The result is correct, but on Linux it returns 15 places after the comma , and on macOS it returns 16 places

avelino added a commit that referenced this issue Feb 27, 2021
ref: #139

Signed-off-by: Avelino <[email protected]>
avelino added a commit that referenced this issue Feb 27, 2021
ref: #139

Signed-off-by: Avelino <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

1 participant