FloatRound not work!
#6

Floatround rounds the number to the nearest whole number.
Which will make 0.751 = 1.

If you want to display 0.751 there's no need to use floatround at all.
If you remove floatround and use %f instead of %d it will display 0.751 correctly.
Reply


Messages In This Thread
FloatRound not work! - by norton2 - 26.09.2015, 15:41
Re: FloatRound not work! - by OllieSimons - 26.09.2015, 15:49
Re: FloatRound not work! - by Sellize - 26.09.2015, 15:53
Re: FloatRound not work! - by Stanford - 26.09.2015, 16:57
Re: FloatRound not work! - by norton2 - 26.09.2015, 21:37
Re: FloatRound not work! - by CalvinC - 26.09.2015, 22:28
Re: FloatRound not work! - by Crayder - 26.09.2015, 22:32
Re: FloatRound not work! - by norton2 - 27.09.2015, 06:02

Forum Jump:


Users browsing this thread: 1 Guest(s)