'Compare the result of Python\'s builtin correctly rounded
string->float conversion (using float) to a pure Python
correctly rounded string->float implementation.  Fail if the
two methods give different results.'

def check_strtod(self, s):

    try:
        fs = float(s)
    except OverflowError:
        got = ('-inf' if (s[0] == '-') else 'inf')
    except MemoryError:
        got = 'memory    error'
    else:
        got = fs.hex()
    expected = strtod(s)
    self.assertEqual(expected, got, 'Incorrectly    rounded    str->float    conversion    for    {}:    expected    {},    got    {}'.format(s, expected, got))
