10.05.2012, 17:53
I did not face with this problem before but, when I use floatstr it returns inaccurate value.
For example:
How to solve this problem? (If the full code needed - tell me)
Using 0.3e server, coding a filterscript.
Includes: mysql, zcmd, cstl
Plugins: mysql, cstl
For example:
Код:
printf("floatstr -1772.8328 result is: %f", floatstr("-1772.8328")); printf("floatstr 1555.17 result is: %f", floatstr("1555.17"));
Quote:
floatstr -1772.8328 result is: -1772.832763 floatstr 1555.17 result is: 1555.170043 |
Using 0.3e server, coding a filterscript.
Includes: mysql, zcmd, cstl
Plugins: mysql, cstl