C# Decimal.Epsilon

Contrary to that definition, epsilon is actually a concept used to eliminate the ambiguity of conversion between binary and decimal representations of values. For example, 0.1 in decimal doesn’t have a simple binary representation, so when you declare a double as 0.1, it is actually setting that value to an approximate representation in binary. If … Read more

Double.Epsilon for equality, greater than, less than, less than or equal to, greater than or equal to

I don’t know what they were smoking when they wrote that. Double.Epsilon is the smallest representable non-denormal floating point value that isn’t 0. All you know is that, if there’s a truncation error, it will always be larger than this value. Much larger. The System.Double type can represent values accurate to up to 15 digits. … Read more