diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-11-29 13:26:48 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-11-29 13:26:48 -0800 |
commit | 55dfa5b98530bdeae19f5e1f118634d9c774773f (patch) | |
tree | 2f9b18b57f2d383571cafb13639f0ac0efeffc2a /apps/tile | |
parent | e1eadf67bb328b560e6e8ddf8edbedb63bfe5973 (diff) | |
download | mu-55dfa5b98530bdeae19f5e1f118634d9c774773f.tar.gz |
7305 - make float-size more consistent as well
Diffstat (limited to 'apps/tile')
-rw-r--r-- | apps/tile/main.mu | 4 |
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 |