Fix docs on sign result.
This commit is contained in:
parent
9ba7a1245d
commit
b72a6355fd
@ -10,10 +10,10 @@ The following standard functions (defined in the [`BasicMathPackage`][packages]
|
|||||||
operate on `i8`, `i16`, `i32`, `i64`, `f32` and `f64` only:
|
operate on `i8`, `i16`, `i32`, `i64`, `f32` and `f64` only:
|
||||||
|
|
||||||
| Function | Description |
|
| Function | Description |
|
||||||
| ------------ | --------------------------------------------------------------- |
|
| ------------ | ----------------------------------------------------------------------- |
|
||||||
| `abs` | absolute value |
|
| `abs` | absolute value |
|
||||||
| `sign` | returns -1 if the number is negative, +1 if positive, 0 if zero |
|
| `sign` | returns -1 (`INT`) if the number is negative, +1 if positive, 0 if zero |
|
||||||
| [`to_float`] | converts an integer type to `f64` |
|
| [`to_float`] | converts an integer type to `FLOAT` |
|
||||||
|
|
||||||
Floating-Point Functions
|
Floating-Point Functions
|
||||||
-----------------------
|
-----------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user