From f36f022b08557fdbedb153d6487f9cf645e0c5f5 Mon Sep 17 00:00:00 2001 From: Sumeet Agarwal Date: Thu, 17 Jun 2021 21:24:11 -0700 Subject: change precision when loading sandbox code --- shell/print.mu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shell/print.mu') 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 } -- cgit 1.4.1-2-gfad0