I feel like I have been bothering you a lot lately, but I swear my game is almost finished now
Today I wanted to share about a seemingly random thing I've seen that is starting to annoy me.
I have a counter for each of my levels (Every 0.1 seconds -> Add 0.1 to Timer_X). This works like a charm.
At the end of each level I add the time to a webstorage local key (Set local key "Time_LevelX" to round(Timer_LevelX*10)/10). This will round down and save only 1 decimal to the key.
However, in an overview page, I'm displaying the total time for each level added up:
Set text to float(WebStorage.LocalValue("Time_Level1"))+float(WebStorage.LocalValue("Time_Level2")) +float(WebStorage.LocalValue("Time_Level3"))+++ and so on.
Most of the time this looks good, but once in a blue moon it will display a long row of decimals, even if the keys separately only has 1 decimal.
Any way I can improve my math?
[attachment=0:idu2zwtj][/attachment:idu2zwtj]