Use the decimal data type. “The Decimal value type is appropriate for financial calculations requiring large numbers of significant integral and fractional digits and no round-off errors.”
More Related Contents:
- decimal vs double! – Which one should I use and when? [duplicate]
- Why is a round-trip conversion via a string not safe for a double?
- Why is this simple calculation of two doubles inaccurate? [duplicate]
- C# Converting 20 digit precision double to string and back again
- How to generate an Array of Double Arrays in c#? [duplicate]
- How do I parse a string with a decimal point to a double?
- Comparing double values in C#
- Is floating-point math consistent in C#? Can it be?
- C# DateTime.Now precision
- How To Represent 0.1 In Floating Point Arithmetic And Decimal
- Is it safe to check floating point values for equality to 0?
- Converting string to double in C#
- C# Double – ToString() formatting with two decimal places but no rounding
- Are all integer values perfectly represented as doubles? [duplicate]
- Double precision problems on .NET
- Limiting double to 3 decimal places
- Formatting a double to two decimal places
- Double.TryParse or Convert.ToDouble – which is faster and safer?
- What’s the best way to compare Double and Int?
- What’s wrong with this division? [closed]
- Get DateTime.Now with milliseconds precision
- Conversion of a decimal to double number in C# results in a difference
- Performing Math operations on decimal datatype in C#?
- Input string was not in a correct format #2
- Why c# decimals can’t be initialized without the M suffix?
- Why does a C# System.Decimal remember trailing zeros?
- Round double in two decimal places in C#?
- Converting a double to an int in C#
- Formatting a string into columns using String Interpolation
- Double vs Decimal Rounding in C#