1. Decimal in C#represents 128 -bit data types. Compared with Double, the Decimal type has higher accuracy and smaller range, suitable for financial and currency calculations.
2. The DECIMAL data type can be used in the Visual Studio editor. As long as you add a capital or lowercase M after a floating -point value, the editor will think that the value of this floating point type type value It is a decimal type.
3. This 128 -bit high -precision decimal number representation is usually used in financial computing. It should be noted that in the .NET environment, calculating the value of this type will have performance losses because it is not a basic type.
Your email address will not be published. Required fields are marked *
Save my name, email, and website in this browser for the next time I comment.