Searched refs:scaleb (Results 1 – 8 of 8) sorted by relevance
32 ddscb001 scaleb 7.50 10 -> 7.50E+1033 ddscb002 scaleb 7.50 3 -> 7.50E+334 ddscb003 scaleb 7.50 2 -> 75035 ddscb004 scaleb 7.50 1 -> 75.036 ddscb005 scaleb 7.50 0 -> 7.5037 ddscb006 scaleb 7.50 -1 -> 0.75038 ddscb007 scaleb 7.50 -2 -> 0.075039 ddscb008 scaleb 7.50 -10 -> 7.50E-1040 ddscb009 scaleb -7.50 3 -> -7.50E+341 ddscb010 scaleb -7.50 2 -> -750[all …]
2 -- scaleb.decTest -- scale a number by powers of 10 --31 scbx001 scaleb 7.50 10 -> 7.50E+1032 scbx002 scaleb 7.50 3 -> 7.50E+333 scbx003 scaleb 7.50 2 -> 75034 scbx004 scaleb 7.50 1 -> 75.035 scbx005 scaleb 7.50 0 -> 7.5036 scbx006 scaleb 7.50 -1 -> 0.75037 scbx007 scaleb 7.50 -2 -> 0.075038 scbx008 scaleb 7.50 -10 -> 7.50E-1039 scbx009 scaleb -7.50 3 -> -7.50E+3[all …]
32 dqscb001 scaleb 7.50 10 -> 7.50E+1033 dqscb002 scaleb 7.50 3 -> 7.50E+334 dqscb003 scaleb 7.50 2 -> 75035 dqscb004 scaleb 7.50 1 -> 75.036 dqscb005 scaleb 7.50 0 -> 7.5037 dqscb006 scaleb 7.50 -1 -> 0.75038 dqscb007 scaleb 7.50 -2 -> 0.075039 dqscb008 scaleb 7.50 -10 -> 7.50E-1040 dqscb009 scaleb -7.50 3 -> -7.50E+341 dqscb010 scaleb -7.50 2 -> -750[all …]
69 dectest: scaleb
138 -- tests for scaleb in case where input precision > context precision.146 extr1200 scaleb 1234 1 -> 1.23E+4 Inexact Rounded147 extr1201 scaleb 5678 0 -> 5.68E+3 Inexact Rounded148 extr1202 scaleb -9105 -1 -> -910 Inexact Rounded
2345 ans = str(x.scaleb(7, context=None))2347 self.assertRaises(InvalidOperation, x.scaleb, 10000, context=None)2460 self.assertEqual(Decimal('9.123').scaleb(-100),2461 Decimal('9.123').scaleb(Decimal(-100)))2765 D('23').scaleb, 1, context=xc)3502 d = c.scaleb(Decimal(1), Decimal(2))3503 self.assertEqual(c.scaleb(1, 2), d)3504 self.assertEqual(c.scaleb(Decimal(1), 2), d)3505 self.assertEqual(c.scaleb(1, Decimal(2)), d)3506 self.assertRaises(TypeError, c.scaleb, '1', 2)[all …]
3669 def scaleb(self, other, context=None): member in Decimal5412 def scaleb (self, a, b): member in Context5429 return a.scaleb(b, context=self)
838 .. method:: scaleb(other, context=None)1418 .. method:: scaleb (x, y)