@requires_IEEE_754
def testInitFromFloat(self):
    self.assertEqual((5, 2), _components(F(2.5)))
    self.assertEqual((0, 1), _components(F((- 0.0))))
    self.assertEqual((3602879701896397, 36028797018963968), _components(F(0.1)))
    self.assertRaises(ValueError, F, float('nan'))
    self.assertRaises(OverflowError, F, float('inf'))
    self.assertRaises(OverflowError, F, float('-inf'))
@requires_IEEE_754
def testInitFromFloat(self):
    self.assertEqual((5, 2), _components(F(2.5)))
    self.assertEqual((0, 1), _components(F((- 0.0))))
    self.assertEqual((3602879701896397, 36028797018963968), _components(F(0.1)))
    self.assertRaises(ValueError, F, float('nan'))
    self.assertRaises(OverflowError, F, float('inf'))
    self.assertRaises(OverflowError, F, float('-inf'))