added workaround

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
This commit is contained in:
Anton-4 2024-08-03 14:43:09 +02:00 committed by GitHub
parent fd8b7355f6
commit dd3d3810fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.
##