Answers for "c# round to closest multiple"

C#
0

c# round to closest multiple

int value = 30;
int factor = 16;
int nearestMultiple = 
        (int)Math.Round(
             (value / (double)factor),
             MidpointRounding.AwayFromZero
         ) * factor;
Posted by: Guest on March-12-2020

Code answers related to "c# round to closest multiple"

C# Answers by Framework

Browse Popular Code Answers by Language