Greetings,
From all the research I have done, I cannot find evidence that rounding a float in agk exists. Could I be wrong?
I want to be able to display taps per second to two decimal places, however I seem to get results such as:
1.166667
even with using such rounding algorithms as:
( ( Taps / 30.0 ) * 100 ) / 100 )
I believe it is possible in other languages to round decimal places to display say:
1.17 ( double d = 1.166667;
DecimalFormat df = new DecimalFormat("#.##"); ) for example.
My question is simply; Is there a way to display only two decimal places or am I going to have to write IF statements questioning if the number is every possible two decimal float and print it as a String?
Cheers
Measuring programming progress by lines of code is like measuring aircraft building progress by weight.