Problem with floatstr (inaccurate value)
#3

Quote:
Originally Posted by Yuryfury
Посмотреть сообщение
You can try this (haven't tested):
pawn Код:
printf("floatstr -1772.8328 result is: %.4f", floatstr("-1772.8328"));
printf("floatstr 1555.17 result is: %.2f", floatstr("1555.17"));
This makes the float only have 4 and 2 decimal places (respectively)
There is a big number of floats in my filterscript, and it is not the solution, but anyway - thanks.
Reply


Messages In This Thread
Problem with floatstr (inaccurate value) - by gangsta15 - 10.05.2012, 17:53
Re: Problem with floatstr (inaccurate value) - by Yuryfury - 11.05.2012, 00:04
Re: Problem with floatstr (inaccurate value) - by gangsta15 - 11.05.2012, 05:31

Forum Jump:


Users browsing this thread: 1 Guest(s)