3 ms·
Any language which uses floating points to represent these values rather than fixed points. C# and some versions of C use fixed-point representations for these
by rprasad 14y ago
Any language which uses floating points to represent these values rather than fixed points.
C# and some versions of C use fixed-point representations for these values by default (or correct for floating point errors internally, as with C#), and return the correct answer of true, as .1 is equal to .1 in fixed-point representations.
EDIT: False is only the correct answer when using floating point representations, as the equation no longer boils down to .1 == .1, but something like .999 == 1.0001, etc.