Fix docs on sign result.

This commit is contained in:
Stephen Chung 2020-08-28 16:46:06 +08:00
parent 9ba7a1245d
commit b72a6355fd

View File

@ -10,10 +10,10 @@ The following standard functions (defined in the [`BasicMathPackage`][packages]
operate on `i8`, `i16`, `i32`, `i64`, `f32` and `f64` only:
| Function | Description |
| ------------ | --------------------------------------------------------------- |
| ------------ | ----------------------------------------------------------------------- |
| `abs` | absolute value |
| `sign` | returns -1 if the number is negative, +1 if positive, 0 if zero |
| [`to_float`] | converts an integer type to `f64` |
| `sign` | returns -1 (`INT`) if the number is negative, +1 if positive, 0 if zero |
| [`to_float`] | converts an integer type to `FLOAT` |
Floating-Point Functions
-----------------------