1
0
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:
Mathieu Gagnon
2016-02-11 17:58:09 -05:00
parent 68ab4e88c0
commit a2e03279e2

View File

@ -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**