AcTools.Utils.MathUtils.Round C# (CSharp) Method

Round() public static method

For example: Round(0.342, 0.05) → 0.35.
public static Round ( this value, double precision ) : double
value this
precision double
return double
        public static double Round(this double value, double precision) {
            return Math.Round(value / precision) * precision;
        }

Same methods

MathUtils::Round ( this value, int precision ) : int