The (10.8).toFixed(2); doesn't work in unity, and .ToString(F2); is converting a number to a string.
asked Dec 20 '11 at 02:47 PM
To be completely honest I don't know for sure. Maybe something like this:
This will round 'randomNumber' to two decimals.
If you want three decimals you can divide by 1000.0.
If you want four decimals you can divide by 10000.0.
And so on.