Skip to content

Commit fa2a3d9

Browse files
authored
Clarify modulus documentation for sign
closes wren-lang#695
1 parent 0e67667 commit fa2a3d9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

doc/site/modules/core/num.markdown

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,10 @@ not a number. Wren doesn't roll with implicit conversions.
134134

135135
### **%**(denominator) operator
136136

137-
The floating-point remainder of this number divided by `denominator`.
137+
Also known as mod or modulus.
138+
The floating-point remainder of this number divided by `denominator`.
139+
140+
The returned value has the same sign as `this` (internally calls `fmod` from C).
138141

139142
It is a runtime error if `denominator` is not a number.
140143

0 commit comments

Comments
 (0)