What is this "var1 = Math.Ceiling (hours / (40.00M * 4.3M));

Does anyone know what the C # "M" syntax means?

var1 = Math.Ceiling(hours / (40.00M * 4.3M));

      

+1


source to share


3 answers


M is the suffix for a decimal number. I guess for "money" I guess.



http://msdn.microsoft.com/en-us/library/364x0z75(VS.71).aspx

+7


source


that means it's a number decimal

.



+8


source


The default interpretation of 40.00 will be double with a value of 40.00, just like the default interpretation of 40 is an int.

If you want to use decimal or long instead, you can add suffix M (decimal) and L (long).

+5


source







All Articles