Lines Matching refs:float
1 # Tests for the correctly-rounded string -> float conversions
11 raise unittest.SkipTest('correctly-rounded string->float conversions '
14 # Correctly rounded str -> float in pure Python, for comparison.
25 # Pure Python version of correctly rounded string->float conversion.
29 IEEE 754 binary64 float. Return 'inf' or '-inf' on overflow.
89 string->float conversion (using float) to a pure Python
90 correctly rounded string->float implementation. Fail if the
94 fs = float(s)
103 "Incorrectly rounded str->float conversion for {}: "
152 # bit pattern for a random finite positive (or +0.0) float
245 float(s)
256 float(s)
261 float(s)
275 self.assertEqual(float(positive_exp(10000)), 1.0)
276 self.assertEqual(float(positive_exp(20000)), 1.0)
277 self.assertEqual(float(positive_exp(30000)), 1.0)
278 self.assertEqual(float(negative_exp(10000)), 1.0)
279 self.assertEqual(float(negative_exp(20000)), 1.0)
280 self.assertEqual(float(negative_exp(30000)), 1.0)