You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While implementing WASI's trace I noticed that we currently don't have the utility in place to omit trailing decimal .0s when converting a float to a string, like JS would do. As a result, WASI's trace prints those decimal places, while JS's trace does not.
trace("hello world",3,1,2,3.5);// trace: hello world 1.0 2.0 3.5
This looks like it is not quite the same but similar in nature to toFixed, and looking into both instead of implementing workarounds might be ideal.
The text was updated successfully, but these errors were encountered:
Oops, I just ran into the missing .toFixed today 😂 No worries though! I don't actually "need" it. But I'm commenting here, so I can remember to open a PR for it if I get the time 😄
While implementing WASI's
trace
I noticed that we currently don't have the utility in place to omit trailing decimal.0
s when converting a float to a string, like JS would do. As a result, WASI'strace
prints those decimal places, while JS'strace
does not.This looks like it is not quite the same but similar in nature to
toFixed
, and looking into both instead of implementing workarounds might be ideal.The text was updated successfully, but these errors were encountered: