Wazarr94 / haxball_bot_headless

Ready-to-go scripts and functions for the HaxBall Headless API !
MIT License
46 stars 74 forks source link

playtime stat printing a huge float number #39

Closed iwishiknewcoding closed 2 years ago

iwishiknewcoding commented 2 years ago

I'm not sure if this is working fine for everyone, but what I'm experiencing in "!me" command is, the host printing a very long float number for the playtime stat. Is this how it is supposed to look like? I'm guessing not, but what I want to know is whether I'm the only one having this issue or it's the same for others as well.

image
Wazarr94 commented 2 years ago

thanks for the issue, fixed it, but I used the floor function instead of the toPrecision method, I think it makes the most sense

iwishiknewcoding commented 2 years ago

Makes sense, thanks