How can i round this number

This thread mentions the same issue. It might be unfixable, but I refuse to believe it, as there are plenty of games having similar mechanic to yours and they work fine.