make 3.60000000 into 3.6
-
I looked through the maths functions hoping float() or trunc() would remove the zeros but alas. Is there fuze function for it. Or do I need to make my own with string manipulation
Thanks
-
Have a look at this thread: https://fuzearena.com/forum/topic/118/printing-a-set-amount-of-decimal-places/7
-
@pianofire exactly what was needed. Thank you
-
I think it might be good to have something like printf(format, args...):
http://www.cplusplus.com/reference/cstdio/printf/
in the language itself.
-
I'm not entirely sure why it displays all the redundant 0's in floats in the first place, just a teething thing I assume