about summary refs log tree commit diff stats
path: root/shell
diff options
context:
space:
mode:
authorSumeet Agarwal <sumeet.a@gmail.com>2021-06-17 21:24:11 -0700
committerSumeet Agarwal <sumeet.a@gmail.com>2021-06-17 21:24:41 -0700
commitf36f022b08557fdbedb153d6487f9cf645e0c5f5 (patch)
tree7879edc99a8a2ddfba99ad380fc7e92436c25daa /shell
parentdd60caa3f51c5117c0193f8f3272e1c7f5230eb7 (diff)
downloadmu-f36f022b08557fdbedb153d6487f9cf645e0c5f5.tar.gz
change precision when loading sandbox code
Diffstat (limited to 'shell')
-rw-r--r--shell/print.mu4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/print.mu b/shell/print.mu
index ef599dc7..ea5db3cf 100644
--- a/shell/print.mu
+++ b/shell/print.mu
@@ -217,7 +217,7 @@ fn print-number _in: (addr cell), out: (addr stream byte), trace: (addr trace) {
   }
   var in/esi: (addr cell) <- copy _in
   var val/eax: (addr float) <- get in, number-data
-  write-float-decimal-approximate out, *val, 3/precision
+  write-float-decimal-approximate out, *val, 0x10/precision
   # trace
   {
     var should-trace?/eax: boolean <- should-trace? trace
@@ -228,7 +228,7 @@ fn print-number _in: (addr cell), out: (addr stream byte), trace: (addr trace) {
   var stream-storage: (stream byte 0x40)
   var stream/ecx: (addr stream byte) <- address stream-storage
   write stream, "=> number "
-  write-float-decimal-approximate stream, *val, 3/precision
+  write-float-decimal-approximate stream, *val, 0x10/precision
   trace trace, "print", stream
 }