Problem with floatstr (inaccurate value)
#2

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)
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)