Posts: 388
Threads: 4
Joined: Aug 2008
Reputation:
0
Thanks for answer.
If I enter "30.10000", "40.100000" and so on, it will not help. I already tried it.
And these numbers are some kind of player's stats, so I need to show it as float, not integer, so floatround will not help here.
Posts: 973
Threads: 11
Joined: Mar 2008
Reputation:
0
Well actually that IS correct, but if you're looking to trim it down to only one decimal place you have to specify that within printf.
instead of "%f" try "%.1f" and let me know if thats what you're looking for (i may have misunderstood the issue).
Posts: 973
Threads: 11
Joined: Mar 2008
Reputation:
0
Why do you need it to be EXACT? I cant think of a single time where that small of a different would affect anything really. I honestly dont know what i can do to help / what you expect :\ sorry.
Posts: 388
Threads: 4
Joined: Aug 2008
Reputation:
0
I just wondering: why it's work fine with 10.1, 20.1, 30.1 and doesn't work with 40.1, 50.1 and above.
Thanks anyway.