c# - how to round up a digit after a decimal -


i want round number after decimal point 2 numbers in c#.

ex: input: 100.175 ouput: 100.17

input:100.176 output:100.18 (as number after 2 digits above 5,rounding 6) 

thanks in advance

here need:

result = math.round(mynum, 2); 

although should clear, 1st argument number round, , 2nd argument number of decimal places want.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -