- Home /
Best Answer
Answer by kevork · Jan 26, 2012 at 12:08 AM
If you want to round to the nearest 1/x, where x is a positive integer.
float roundedValue = Mathf.Floor(initialValue * x) / x;
koobas.hobune.stream |
|
Close Help |
Answer by kevork · Jan 26, 2012 at 12:08 AM
If you want to round to the nearest 1/x, where x is a positive integer.
float roundedValue = Mathf.Floor(initialValue * x) / x;