Home
last modified time | relevance | path

Searched refs:quantize (Results 1 – 13 of 13) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/decimaltestdata/
DdqQuantize.decTest2 -- dqQuantize.decTest -- decQuad quantize operation --
24 -- 2004.03.15 Underflow for quantize is suppressed
26 -- [Forked from quantize.decTest 2006.11.25]
36 dqqua001 quantize 0 1e0 -> 0
37 dqqua002 quantize 1 1e0 -> 1
38 dqqua003 quantize 0.1 1e+2 -> 0E+2 Inexact Rounded
39 dqqua005 quantize 0.1 1e+1 -> 0E+1 Inexact Rounded
40 dqqua006 quantize 0.1 1e0 -> 0 Inexact Rounded
41 dqqua007 quantize 0.1 1e-1 -> 0.1
42 dqqua008 quantize 0.1 1e-2 -> 0.10
[all …]
DddQuantize.decTest2 -- ddQuantize.decTest -- decDouble quantize operation --
24 -- 2004.03.15 Underflow for quantize is suppressed
34 ddqua001 quantize 0 1e0 -> 0
35 ddqua002 quantize 1 1e0 -> 1
36 ddqua003 quantize 0.1 1e+2 -> 0E+2 Inexact Rounded
37 ddqua005 quantize 0.1 1e+1 -> 0E+1 Inexact Rounded
38 ddqua006 quantize 0.1 1e0 -> 0 Inexact Rounded
39 ddqua007 quantize 0.1 1e-1 -> 0.1
40 ddqua008 quantize 0.1 1e-2 -> 0.10
41 ddqua009 quantize 0.1 1e-3 -> 0.100
[all …]
Dquantize.decTest2 -- quantize.decTest -- decimal quantize operation --
24 -- 2004.03.15 Underflow for quantize is suppressed
34 quax001 quantize 0 1e0 -> 0
35 quax002 quantize 1 1e0 -> 1
36 quax003 quantize 0.1 1e+2 -> 0E+2 Inexact Rounded
37 quax005 quantize 0.1 1e+1 -> 0E+1 Inexact Rounded
38 quax006 quantize 0.1 1e0 -> 0 Inexact Rounded
39 quax007 quantize 0.1 1e-1 -> 0.1
40 quax008 quantize 0.1 1e-2 -> 0.10
41 quax009 quantize 0.1 1e-3 -> 0.100
[all …]
DddCanonical.decTest287 ddcan401 quantize #6e38ff3ffff3fcff 1 -> #6e38ff3fcff3fcff
288 ddcan402 quantize #6e38ff3fcff3fdff 0 -> #6e38ff3fcff3fcff
289 ddcan403 quantize #7880000000000000 Inf -> #7800000000000000
290 ddcan404 quantize #7802000000000000 -Inf -> #7800000000000000
291 ddcan410 quantize #7c03ff3fcff3fcff 1 -> #7c00ff3fcff3fcff
292 ddcan411 quantize #7c03ff3fcff3fcff 1 -> #7c00ff3fcff3fcff
293 ddcan412 quantize #7c40ff3fcff3fcff 1 -> #7c00ff3fcff3fcff
294 ddcan413 quantize #7c40ff3fcff3fcff 1 -> #7c00ff3fcff3fcff
295 ddcan414 quantize #7e00ffffcff3fcff 1 -> #7c00ff3fcff3fcff Invalid_operation
296 ddcan415 quantize #7e00ffffcff3fcff 1 -> #7c00ff3fcff3fcff Invalid_operation
[all …]
DdqCanonical.decTest310 dqcan401 quantize #ee080ff3fcff3fcff3fffffffff3fcff 0 -> #ee080ff3fcff3fcff3fcff3fcff3fcff
311 dqcan402 quantize #ee080ff3fffffffffffcff3fcff3fcff 0 -> #ee080ff3fcff3fcff3fcff3fcff3fcff
312 dqcan403 quantize #78800000000000000000000000000000 Inf -> #78000000000000000000000000000000
313 dqcan404 quantize #78020000000000000000000000000000 -Inf -> #78000000000000000000000000000000
314 dqcan410 quantize #7c080ff3fcff3fcff3fcff3fcff3fcff 1 -> #7c000ff3fcff3fcff3fcff3fcff3fcff
315 dqcan411 quantize #fc000ff3fcfffffff3fcff3fcff3fcff 1 -> #fc000ff3fcff3fcff3fcff3fcff3fcff
316 dqcan412 quantize #7e100ff3fcff3fcff3fcff3fcff3fcff 1 -> #7c000ff3fcff3fcff3fcff3fcff3fcff Inva…
317 dqcan413 quantize #fe000ff3fcff3fcff3ffffffcff3fcff 1 -> #fc000ff3fcff3fcff3fcff3fcff3fcff Inva…
Dtestall.decTest60 dectest: quantize
Dtointegral.decTest25 -- quantize, so those are assumed to have been tested.
80 -- next two would be NaN using quantize(x, 0)
Dtointegralx.decTest25 -- quantize, so those are assumed to have been tested.
80 -- next two would be NaN using quantize(x, 0)
DddToIntegral.decTest25 -- quantize, so those are assumed to have been tested extensively
87 -- next two would be NaN using quantize(x, 0)
DdqToIntegral.decTest25 -- quantize, so those are assumed to have been tested extensively
87 -- next two would be NaN using quantize(x, 0)
Drescale.decTest24 -- 2004.03.15 Underflow for quantize is suppressed
409 -- quantize.decTest. Here's a critical one.]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_decimal.py1632 self.assertEqual(Decimal(1234).quantize(100),
1633 Decimal(1234).quantize(Decimal(100)))
2100 d = c.quantize(Decimal(1), Decimal(2))
2101 self.assertEqual(c.quantize(1, 2), d)
2102 self.assertEqual(c.quantize(Decimal(1), 2), d)
2103 self.assertEqual(c.quantize(1, Decimal(2)), d)
2104 self.assertRaises(TypeError, c.quantize, '1', 2)
2105 self.assertRaises(TypeError, c.quantize, 1, '2')
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Ddecimal.py2394 def quantize(self, exp, rounding=None, context=None, watchexp=True): member in Decimal
5017 def quantize(self, a, b): member in Context
5073 return a.quantize(b, context=self)