News for hackers. Stuff that matters.
Re:0.30000000000000004 by macqm on Sunday April 02, 2017 @05:35PM (#14019159)
C# is missing an example using decimal type:

Decimal uses 128 bits to hold it's data and seems to handle rounding differently to System.Double, e.g. 0.1 and 0.2 using decimals evaulates to 0.3:

> 0.1M + 0.2M 0.3

You can read more about decimal here: https://msdn.microsoft.com/en-us/library/364x0z75.aspx

There are no comments on this comment yet.