mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
math.big, docs: document the behaviour of % for negative numbers; in V: -10 % 7 == -3 (#24604)
This commit is contained in:
parent
ebde7bc85e
commit
3ecffe68ff
2 changed files with 5 additions and 0 deletions
|
@ -8293,6 +8293,9 @@ Assignment Operators
|
|||
&&= ||=
|
||||
```
|
||||
|
||||
Note: in V, `assert -10 % 7 == -3` passes. In programming, the sign of the remainder
|
||||
depends upon the signs of divisor and dividend.
|
||||
|
||||
## Other online resources
|
||||
|
||||
### [V contributing guide](https://github.com/vlang/v/blob/master/CONTRIBUTING.md)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue