- Home /
Double Rounding Problem
I want to round a number to 2 decimails. Using Math.Round it works fine until the number is 1e15 or greater where unity shifts from showing the whole number to showing it using e and I can have up to 14 decimals.
Math.Round(1.12345, 2) = 1.12
Math.Round(1.12345E+15, 2) = 1.12345E+15
How do I round my number when unity shift to using e?
Comment
Your answer
Follow this Question
Related Questions
Changing float lenght 2 Answers
Rounding Off A Float? 2 Answers
Float to Int 4 Answers
"bleeding" when using configurable joints 2 Answers
How to round or convert doubles? 2 Answers