mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Num.neg docs
See also https://github.com/roc-lang/roc/issues/6959 Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
This commit is contained in:
parent
034d149b3a
commit
fd8b7355f6
1 changed files with 2 additions and 0 deletions
|
@ -708,6 +708,8 @@ absDiff = \a, b ->
|
|||
##
|
||||
## Num.neg 0.0
|
||||
## ```
|
||||
## !! Num.neg is not completely implemented for all types in all contexts, see github.com/roc-lang/roc/issues/6959
|
||||
##
|
||||
## This is safe to use with any [Frac], but it can cause overflow when used with certain [Int] values.
|
||||
##
|
||||
## For example, calling #Num.neg on the lowest value of a signed integer (such as [Num.minI64] or [Num.minI32]) will cause overflow.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue