source:
Linux: <float64>3.732131966147229 test break example
macOS: <float64>3.7321319661472296 test break example
Operaor pow (**) implementation:
|
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