Commit 2d91fa8
committed
fix: use the same rounding scheme for constants
ZX Spectrum ROM always rounds "towards -Infinity", so:
* INT(1.9) == 1
* INT(-1.1) == -2
We do the same for Constant values so the results are consistent.1 parent 951f53e commit 2d91fa8
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
94 | | - | |
| 95 | + | |
| 96 | + | |
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
| |||
0 commit comments