11.05.2012, 00:04
You can try this (haven't tested):
This makes the float only have 4 and 2 decimal places (respectively)
pawn Код:
printf("floatstr -1772.8328 result is: %.4f", floatstr("-1772.8328"));
printf("floatstr 1555.17 result is: %.2f", floatstr("1555.17"));