about summary refs log tree commit diff stats
path: root/022arithmetic.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-11-05 20:34:09 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-11-05 20:35:17 -0700
commitf9294899d0b952072de3dc87b3ea97e98f150ea4 (patch)
treee962ffc031422cc54c7be1c8ad62846e733c0a9c /022arithmetic.cc
parent15ed8cc164f947d6a49b6b73a00ff9955931ab50 (diff)
downloadmu-f9294899d0b952072de3dc87b3ea97e98f150ea4.tar.gz
3622 - handle fractional coordinates in print
Diffstat (limited to '022arithmetic.cc')
-rw-r--r--022arithmetic.cc12
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")