28.06.2016, 09:09
You could show the number as 2 integers separated by a point.
Multiple it by 10^x with x being how many numbers there are after the decimal point.
Код:
new Float: price = 0.70, before = floatround(price, floatround_tozero), after = floatround(price * 100) - before * 100; printf("%i.%i", before, after);