From b4406f2302be6cf770e04df24f4e436b84d276c0 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Fri, 28 Aug 2020 16:46:06 +0800 Subject: [PATCH] Fix docs on sign result. --- doc/src/language/num-fn.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/src/language/num-fn.md b/doc/src/language/num-fn.md index a963c7e2..c9427a35 100644 --- a/doc/src/language/num-fn.md +++ b/doc/src/language/num-fn.md @@ -9,11 +9,11 @@ Integer Functions The following standard functions (defined in the [`BasicMathPackage`][packages] but excluded if using a [raw `Engine`]) 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` | +| Function | Description | +| ------------ | ----------------------------------------------------------------------- | +| `abs` | absolute value | +| `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 -----------------------