mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
math: correct documentation error for math.signi, make it match the fn signature (#18872)
This commit is contained in:
parent
0915d87c7c
commit
8a0cca2255
@ -146,7 +146,7 @@ pub fn sign(n f64) f64 {
|
|||||||
return copysign(1.0, n)
|
return copysign(1.0, n)
|
||||||
}
|
}
|
||||||
|
|
||||||
// signi returns the corresponding sign -1.0, 1.0 of the provided number.
|
// signi returns the corresponding sign -1, 1 of the provided number.
|
||||||
[inline]
|
[inline]
|
||||||
pub fn signi(n f64) int {
|
pub fn signi(n f64) int {
|
||||||
return int(copysign(1.0, n))
|
return int(copysign(1.0, n))
|
||||||
|
Loading…
Reference in New Issue
Block a user