03.06.2016, 15:45
If you want it as an integer, you can use this:
Here's the function for abs:
Код:
abs(floatround(value * 100.00) - (floatround(value, floatround_tozero) * 100));
Код:
abs(value) { return ((value < 0) ? (-value) : (value)); }