www.digitalmars.com         C & C++   DMDScript  

c++ - Digital Mars C gets the rounding right

http://www.reddit.com/r/programming/comments/cb8qv/incorrectly_rounded_conversions_in_gcc_and_glibc/

     0.500000000000000166533453693773481063544750213623046875
      Correct = 0x1.0000000000002p-1
      dmc =     0x1.0000000000002p-1
      strtod =  0x1.0000000000002p-1

     3.518437208883201171875e13
      Correct = 0x1.0000000000002p+45
      dmc =     0x1.0000000000002p+45
      strtod =  0x1.0000000000002p+45

     62.5364939768271845828
      Correct = 0x1.f44abd5aa7ca4p+5
      dmc =     0x1.f44abd5aa7ca4p+5
      strtod =  0x1.f44abd5aa7ca4p+5

     8.10109172351e-10
      Correct = 0x1.bd5cbaef0fd0cp-31
      dmc =     0x1.bd5cbaef0fd0cp-31
      strtod =  0x1.bd5cbaef0fd0cp-31

     1.50000000000000011102230246251565404236316680908203125
      Correct = 0x1.8p+0
      dmc =     0x1.8p+0
      strtod =  0x1.8p+0

     9007199254740991.4999999999999999999999999999999995
      Correct = 0x1.fffffffffffffp+52
      dmc =     0x1.fffffffffffffp+52
      strtod =  0x1.fffffffffffffp+52
Jun 06 2010