forked from Mirror/wren
Fix abs code sample in doc/site/modules/core/num
-123.abs returns -123 because the dot has higher precedence so it's really -(123.abs).
This commit is contained in:
@ -20,7 +20,7 @@ The value of π.
|
||||
The absolute value of the number.
|
||||
|
||||
:::wren
|
||||
System.print(-123.abs) //> 123
|
||||
System.print( (-123).abs ) //> 123
|
||||
|
||||
### **acos**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user