Home | History | Annotate | Download | only in test

Lines Matching refs:sci

8 fix, sci, NotANumber = fpformat.fix, fpformat.sci, fpformat.NotANumber
15 # sci(n,d) == "%.*e"%(d,n)
16 # for all reasonable numeric n and d, except that sci gives 3 exponent
32 result = sci(n, digits)
46 self.assertEqual(sci(100.0/3, 3), '3.333e+001')
58 self.assertEqual(sci("1"+('0'*1000), 0), '1e+1000')
60 # This behavior is inconsistent. sci raises an exception; fix doesn't.
64 sci(yacht, 10)
68 self.fail("No exception on non-numeric sci")