D-Programming-Language/phobos — pull request #1303 by jpf91 (2013-05-25 11:24:52+00:00)
Title: Make std.conv unittests independent of floating point rounding

These unittest fail on gdc for a subtle reason: gdc has to parse the literal values at compile time, then store them into reals. The strings are parsed by the ```to``` function at runtime. But these values do not fit completely into a 80bit real which means that there is rounding. And this means these tests actually test that the ```string->real``` function in phobos is 1:1 identical to the function used in the compiler. (And we have a 1-bit difference in gdc because of rounding)

So I changed these values to something that fits into 80 bit.

It would be nice if people writing unittests could try not to use binary equality with floating point values which do not fit into the used float type. I guess we'll see many more of these problems on non-x86 hardware.