mirror of
https://github.com/vlang/v.git
synced 2025-09-09 07:15:50 -04:00
math: fix pure v math.pow (#19287)
This commit is contained in:
parent
c790afabdc
commit
43ccba3713
@ -145,7 +145,7 @@ pub fn pow(x f64, y f64) f64 {
|
||||
if y > 0 {
|
||||
return result
|
||||
}
|
||||
return copysign(1, x) / abs(result)
|
||||
return 1 / result
|
||||
}
|
||||
|
||||
// ans = a1 * 2**ae (= 1 for now).
|
||||
|
Loading…
x
Reference in New Issue
Block a user