mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
added workaround
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
This commit is contained in:
parent
fd8b7355f6
commit
dd3d3810fb
1 changed files with 1 additions and 0 deletions
|
@ -709,6 +709,7 @@ 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
|
||||
## You can use `\someNum -> 0 - someNum` as a workaround.
|
||||
##
|
||||
## This is safe to use with any [Frac], but it can cause overflow when used with certain [Int] values.
|
||||
##
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue