diff options
Diffstat (limited to '022arithmetic.cc')
-rw-r--r-- | 022arithmetic.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/022arithmetic.cc b/022arithmetic.cc index 23f9a39d..dfd3b149 100644 --- a/022arithmetic.cc +++ b/022arithmetic.cc @@ -714,6 +714,18 @@ def main [ ] +mem: storing 12 in location 1 +:(scenario round_halves_toward_zero) +def main [ + 1:num <- round 12.5 +] ++mem: storing 12 in location 1 + +:(scenario round_halves_toward_zero_2) +def main [ + 1:num <- round -12.5 +] ++mem: storing -12 in location 1 + :(before "End Primitive Recipe Declarations") CHARACTER_TO_CODE, :(before "End Primitive Recipe Numbers") |