Float round
#4

Quote:
Originally Posted by Scofield62
Посмотреть сообщение
It is not good for me because it is round to integer i want to round to float but only with one digit.
Oh I apologise. I was mixing floatround with the C# function Math.Round, where you can specify decimals.

The only known way I can think of to do so atm is formatting a string with %.1f
Reply


Messages In This Thread
Float round - by Scofield62 - 21.01.2013, 10:41
Re: Float round - by LarzI - 21.01.2013, 10:53
Re: Float round - by Scofield62 - 21.01.2013, 10:55
Re: Float round - by LarzI - 21.01.2013, 11:09
Re: Float round - by Scofield62 - 21.01.2013, 11:17

Forum Jump:


Users browsing this thread: 1 Guest(s)