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

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

@avelino

Description

@avelino

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions