about summary refs log tree commit diff stats
path: root/apps/tile/main.mu
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-11-29 13:26:48 -0800
committerKartik Agaram <vc@akkartik.com>2020-11-29 13:26:48 -0800
commit55dfa5b98530bdeae19f5e1f118634d9c774773f (patch)
tree2f9b18b57f2d383571cafb13639f0ac0efeffc2a /apps/tile/main.mu
parente1eadf67bb328b560e6e8ddf8edbedb63bfe5973 (diff)
downloadmu-55dfa5b98530bdeae19f5e1f118634d9c774773f.tar.gz
7305 - make float-size more consistent as well
Diffstat (limited to 'apps/tile/main.mu')
-rw-r--r--apps/tile/main.mu4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/tile/main.mu b/apps/tile/main.mu
index d81588ce..94e7b1e6 100644
--- a/apps/tile/main.mu
+++ b/apps/tile/main.mu
@@ -133,6 +133,10 @@ fn repl {
       var result/xmm0: float <- pop-number-from-value-stack stack
       print-float-decimal-approximate 0, result, 3
       print-string 0, "\n"
+      print-string 0, "width: "
+      var width/eax: int <- float-size result, 3
+      print-int32-decimal 0, width
+      print-string 0, "\n"
     }
     #
     loop