D
David Hoffer
Does C# have the same problem as C++ with code like this?
if (GetDouble1() == GetDouble2())
{
}
In C++, due to the IEEE storage format, it is possible to have 2 doubles
that are essentially the same value but not quite, so the above code will
not do what you expect. Boost has some extensions to STL to solve this
problem.
Does C# have similar problems? If so, what is the right C# way of handling
this issue?
-dh
if (GetDouble1() == GetDouble2())
{
}
In C++, due to the IEEE storage format, it is possible to have 2 doubles
that are essentially the same value but not quite, so the above code will
not do what you expect. Boost has some extensions to STL to solve this
problem.
Does C# have similar problems? If so, what is the right C# way of handling
this issue?
-dh