annotate Lib/test/decimaltestdata/base.decTest @ 79675:c0a2294de787 2.7

Issue #16199: Backport 2to3 typo fix from 3.2.
author Chris Jerdonek <chris.jerdonek@gmail.com>
date Thu, 11 Oct 2012 16:15:46 -0700
parents 787b969d37f0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1 ------------------------------------------------------------------------
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
2 -- base.decTest -- base decimal <--> string conversions --
48595
b3901c5660f7 Merged revisions 65257 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents: 44025
diff changeset
3 -- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
4 ------------------------------------------------------------------------
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
5 -- Please see the document "General Decimal Arithmetic Testcases" --
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
6 -- at http://www2.hursley.ibm.com/decimal for the description of --
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
7 -- these testcases. --
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
8 -- --
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
9 -- These testcases are experimental ('beta' versions), and they --
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
10 -- may contain errors. They are offered on an as-is basis. In --
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
11 -- particular, achieving the same results as the tests here is not --
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
12 -- a guarantee that an implementation complies with any Standard --
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
13 -- or specification. The tests are not exhaustive. --
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
14 -- --
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
15 -- Please send comments, suggestions, and corrections to the author: --
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
16 -- Mike Cowlishaw, IBM Fellow --
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
17 -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
18 -- mfc@uk.ibm.com --
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
19 ------------------------------------------------------------------------
56838
670caa9775f6 Merged revisions 75286 via svnmerge from
Mark Dickinson <dickinsm@gmail.com>
parents: 48595
diff changeset
20 version: 2.59
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
21 extended: 1
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
22
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
23 -- This file tests base conversions from string to a decimal number
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
24 -- and back to a string (in either Scientific or Engineering form)
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
25
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
26 -- Note that unlike other operations the operand is subject to rounding
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
27 -- to conform to emax and precision settings (that is, numbers will
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
28 -- conform to rules and exponent will be in permitted range).
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
29
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
30 precision: 16
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
31 rounding: half_up
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
32 maxExponent: 384
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
33 minExponent: -383
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
34
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
35 basx001 toSci 0 -> 0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
36 basx002 toSci 1 -> 1
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
37 basx003 toSci 1.0 -> 1.0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
38 basx004 toSci 1.00 -> 1.00
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
39 basx005 toSci 10 -> 10
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
40 basx006 toSci 1000 -> 1000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
41 basx007 toSci 10.0 -> 10.0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
42 basx008 toSci 10.1 -> 10.1
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
43 basx009 toSci 10.4 -> 10.4
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
44 basx010 toSci 10.5 -> 10.5
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
45 basx011 toSci 10.6 -> 10.6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
46 basx012 toSci 10.9 -> 10.9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
47 basx013 toSci 11.0 -> 11.0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
48 basx014 toSci 1.234 -> 1.234
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
49 basx015 toSci 0.123 -> 0.123
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
50 basx016 toSci 0.012 -> 0.012
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
51 basx017 toSci -0 -> -0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
52 basx018 toSci -0.0 -> -0.0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
53 basx019 toSci -00.00 -> -0.00
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
54
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
55 basx021 toSci -1 -> -1
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
56 basx022 toSci -1.0 -> -1.0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
57 basx023 toSci -0.1 -> -0.1
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
58 basx024 toSci -9.1 -> -9.1
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
59 basx025 toSci -9.11 -> -9.11
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
60 basx026 toSci -9.119 -> -9.119
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
61 basx027 toSci -9.999 -> -9.999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
62
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
63 basx030 toSci '123456789.123456' -> '123456789.123456'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
64 basx031 toSci '123456789.000000' -> '123456789.000000'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
65 basx032 toSci '123456789123456' -> '123456789123456'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
66 basx033 toSci '0.0000123456789' -> '0.0000123456789'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
67 basx034 toSci '0.00000123456789' -> '0.00000123456789'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
68 basx035 toSci '0.000000123456789' -> '1.23456789E-7'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
69 basx036 toSci '0.0000000123456789' -> '1.23456789E-8'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
70
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
71 basx037 toSci '0.123456789012344' -> '0.123456789012344'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
72 basx038 toSci '0.123456789012345' -> '0.123456789012345'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
73
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
74 -- String [many more examples are implicitly tested elsewhere]
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
75 -- strings without E cannot generate E in result
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
76 basx040 toSci "12" -> '12'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
77 basx041 toSci "-76" -> '-76'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
78 basx042 toSci "12.76" -> '12.76'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
79 basx043 toSci "+12.76" -> '12.76'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
80 basx044 toSci "012.76" -> '12.76'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
81 basx045 toSci "+0.003" -> '0.003'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
82 basx046 toSci "17." -> '17'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
83 basx047 toSci ".5" -> '0.5'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
84 basx048 toSci "044" -> '44'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
85 basx049 toSci "0044" -> '44'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
86 basx050 toSci "0.0005" -> '0.0005'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
87 basx051 toSci "00.00005" -> '0.00005'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
88 basx052 toSci "0.000005" -> '0.000005'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
89 basx053 toSci "0.0000050" -> '0.0000050'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
90 basx054 toSci "0.0000005" -> '5E-7'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
91 basx055 toSci "0.00000005" -> '5E-8'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
92 basx056 toSci "12345678.543210" -> '12345678.543210'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
93 basx057 toSci "2345678.543210" -> '2345678.543210'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
94 basx058 toSci "345678.543210" -> '345678.543210'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
95 basx059 toSci "0345678.54321" -> '345678.54321'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
96 basx060 toSci "345678.5432" -> '345678.5432'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
97 basx061 toSci "+345678.5432" -> '345678.5432'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
98 basx062 toSci "+0345678.5432" -> '345678.5432'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
99 basx063 toSci "+00345678.5432" -> '345678.5432'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
100 basx064 toSci "-345678.5432" -> '-345678.5432'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
101 basx065 toSci "-0345678.5432" -> '-345678.5432'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
102 basx066 toSci "-00345678.5432" -> '-345678.5432'
33158
3f9d21ec504b Add two new files and update remaining tests from the latest update of the
Raymond Hettinger <python@rcn.com>
parents: 32451
diff changeset
103 -- examples
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
104 basx067 toSci "5E-6" -> '0.000005'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
105 basx068 toSci "50E-7" -> '0.0000050'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
106 basx069 toSci "5E-7" -> '5E-7'
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
107
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
108 -- [No exotics as no Unicode]
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
109
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
110 -- rounded with dots in all (including edge) places
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
111 basx071 toSci .1234567890123456123 -> 0.1234567890123456 Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
112 basx072 toSci 1.234567890123456123 -> 1.234567890123456 Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
113 basx073 toSci 12.34567890123456123 -> 12.34567890123456 Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
114 basx074 toSci 123.4567890123456123 -> 123.4567890123456 Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
115 basx075 toSci 1234.567890123456123 -> 1234.567890123456 Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
116 basx076 toSci 12345.67890123456123 -> 12345.67890123456 Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
117 basx077 toSci 123456.7890123456123 -> 123456.7890123456 Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
118 basx078 toSci 1234567.890123456123 -> 1234567.890123456 Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
119 basx079 toSci 12345678.90123456123 -> 12345678.90123456 Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
120 basx080 toSci 123456789.0123456123 -> 123456789.0123456 Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
121 basx081 toSci 1234567890.123456123 -> 1234567890.123456 Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
122 basx082 toSci 12345678901.23456123 -> 12345678901.23456 Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
123 basx083 toSci 123456789012.3456123 -> 123456789012.3456 Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
124 basx084 toSci 1234567890123.456123 -> 1234567890123.456 Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
125 basx085 toSci 12345678901234.56123 -> 12345678901234.56 Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
126 basx086 toSci 123456789012345.6123 -> 123456789012345.6 Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
127 basx087 toSci 1234567890123456.123 -> 1234567890123456 Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
128 basx088 toSci 12345678901234561.23 -> 1.234567890123456E+16 Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
129 basx089 toSci 123456789012345612.3 -> 1.234567890123456E+17 Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
130 basx090 toSci 1234567890123456123. -> 1.234567890123456E+18 Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
131
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
132 -- Numbers with E
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
133 basx130 toSci "0.000E-1" -> '0.0000'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
134 basx131 toSci "0.000E-2" -> '0.00000'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
135 basx132 toSci "0.000E-3" -> '0.000000'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
136 basx133 toSci "0.000E-4" -> '0E-7'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
137 basx134 toSci "0.00E-2" -> '0.0000'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
138 basx135 toSci "0.00E-3" -> '0.00000'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
139 basx136 toSci "0.00E-4" -> '0.000000'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
140 basx137 toSci "0.00E-5" -> '0E-7'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
141 basx138 toSci "+0E+9" -> '0E+9'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
142 basx139 toSci "-0E+9" -> '-0E+9'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
143 basx140 toSci "1E+9" -> '1E+9'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
144 basx141 toSci "1e+09" -> '1E+9'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
145 basx142 toSci "1E+90" -> '1E+90'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
146 basx143 toSci "+1E+009" -> '1E+9'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
147 basx144 toSci "0E+9" -> '0E+9'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
148 basx145 toSci "1E+9" -> '1E+9'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
149 basx146 toSci "1E+09" -> '1E+9'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
150 basx147 toSci "1e+90" -> '1E+90'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
151 basx148 toSci "1E+009" -> '1E+9'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
152 basx149 toSci "000E+9" -> '0E+9'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
153 basx150 toSci "1E9" -> '1E+9'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
154 basx151 toSci "1e09" -> '1E+9'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
155 basx152 toSci "1E90" -> '1E+90'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
156 basx153 toSci "1E009" -> '1E+9'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
157 basx154 toSci "0E9" -> '0E+9'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
158 basx155 toSci "0.000e+0" -> '0.000'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
159 basx156 toSci "0.000E-1" -> '0.0000'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
160 basx157 toSci "4E+9" -> '4E+9'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
161 basx158 toSci "44E+9" -> '4.4E+10'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
162 basx159 toSci "0.73e-7" -> '7.3E-8'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
163 basx160 toSci "00E+9" -> '0E+9'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
164 basx161 toSci "00E-9" -> '0E-9'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
165 basx162 toSci "10E+9" -> '1.0E+10'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
166 basx163 toSci "10E+09" -> '1.0E+10'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
167 basx164 toSci "10e+90" -> '1.0E+91'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
168 basx165 toSci "10E+009" -> '1.0E+10'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
169 basx166 toSci "100e+9" -> '1.00E+11'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
170 basx167 toSci "100e+09" -> '1.00E+11'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
171 basx168 toSci "100E+90" -> '1.00E+92'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
172 basx169 toSci "100e+009" -> '1.00E+11'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
173
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
174 basx170 toSci "1.265" -> '1.265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
175 basx171 toSci "1.265E-20" -> '1.265E-20'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
176 basx172 toSci "1.265E-8" -> '1.265E-8'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
177 basx173 toSci "1.265E-4" -> '0.0001265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
178 basx174 toSci "1.265E-3" -> '0.001265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
179 basx175 toSci "1.265E-2" -> '0.01265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
180 basx176 toSci "1.265E-1" -> '0.1265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
181 basx177 toSci "1.265E-0" -> '1.265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
182 basx178 toSci "1.265E+1" -> '12.65'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
183 basx179 toSci "1.265E+2" -> '126.5'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
184 basx180 toSci "1.265E+3" -> '1265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
185 basx181 toSci "1.265E+4" -> '1.265E+4'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
186 basx182 toSci "1.265E+8" -> '1.265E+8'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
187 basx183 toSci "1.265E+20" -> '1.265E+20'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
188
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
189 basx190 toSci "12.65" -> '12.65'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
190 basx191 toSci "12.65E-20" -> '1.265E-19'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
191 basx192 toSci "12.65E-8" -> '1.265E-7'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
192 basx193 toSci "12.65E-4" -> '0.001265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
193 basx194 toSci "12.65E-3" -> '0.01265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
194 basx195 toSci "12.65E-2" -> '0.1265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
195 basx196 toSci "12.65E-1" -> '1.265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
196 basx197 toSci "12.65E-0" -> '12.65'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
197 basx198 toSci "12.65E+1" -> '126.5'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
198 basx199 toSci "12.65E+2" -> '1265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
199 basx200 toSci "12.65E+3" -> '1.265E+4'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
200 basx201 toSci "12.65E+4" -> '1.265E+5'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
201 basx202 toSci "12.65E+8" -> '1.265E+9'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
202 basx203 toSci "12.65E+20" -> '1.265E+21'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
203
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
204 basx210 toSci "126.5" -> '126.5'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
205 basx211 toSci "126.5E-20" -> '1.265E-18'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
206 basx212 toSci "126.5E-8" -> '0.000001265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
207 basx213 toSci "126.5E-4" -> '0.01265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
208 basx214 toSci "126.5E-3" -> '0.1265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
209 basx215 toSci "126.5E-2" -> '1.265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
210 basx216 toSci "126.5E-1" -> '12.65'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
211 basx217 toSci "126.5E-0" -> '126.5'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
212 basx218 toSci "126.5E+1" -> '1265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
213 basx219 toSci "126.5E+2" -> '1.265E+4'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
214 basx220 toSci "126.5E+3" -> '1.265E+5'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
215 basx221 toSci "126.5E+4" -> '1.265E+6'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
216 basx222 toSci "126.5E+8" -> '1.265E+10'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
217 basx223 toSci "126.5E+20" -> '1.265E+22'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
218
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
219 basx230 toSci "1265" -> '1265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
220 basx231 toSci "1265E-20" -> '1.265E-17'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
221 basx232 toSci "1265E-8" -> '0.00001265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
222 basx233 toSci "1265E-4" -> '0.1265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
223 basx234 toSci "1265E-3" -> '1.265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
224 basx235 toSci "1265E-2" -> '12.65'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
225 basx236 toSci "1265E-1" -> '126.5'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
226 basx237 toSci "1265E-0" -> '1265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
227 basx238 toSci "1265E+1" -> '1.265E+4'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
228 basx239 toSci "1265E+2" -> '1.265E+5'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
229 basx240 toSci "1265E+3" -> '1.265E+6'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
230 basx241 toSci "1265E+4" -> '1.265E+7'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
231 basx242 toSci "1265E+8" -> '1.265E+11'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
232 basx243 toSci "1265E+20" -> '1.265E+23'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
233
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
234 basx250 toSci "0.1265" -> '0.1265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
235 basx251 toSci "0.1265E-20" -> '1.265E-21'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
236 basx252 toSci "0.1265E-8" -> '1.265E-9'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
237 basx253 toSci "0.1265E-4" -> '0.00001265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
238 basx254 toSci "0.1265E-3" -> '0.0001265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
239 basx255 toSci "0.1265E-2" -> '0.001265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
240 basx256 toSci "0.1265E-1" -> '0.01265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
241 basx257 toSci "0.1265E-0" -> '0.1265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
242 basx258 toSci "0.1265E+1" -> '1.265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
243 basx259 toSci "0.1265E+2" -> '12.65'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
244 basx260 toSci "0.1265E+3" -> '126.5'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
245 basx261 toSci "0.1265E+4" -> '1265'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
246 basx262 toSci "0.1265E+8" -> '1.265E+7'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
247 basx263 toSci "0.1265E+20" -> '1.265E+19'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
248
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
249 -- some more negative zeros [systematic tests below]
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
250 basx290 toSci "-0.000E-1" -> '-0.0000'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
251 basx291 toSci "-0.000E-2" -> '-0.00000'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
252 basx292 toSci "-0.000E-3" -> '-0.000000'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
253 basx293 toSci "-0.000E-4" -> '-0E-7'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
254 basx294 toSci "-0.00E-2" -> '-0.0000'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
255 basx295 toSci "-0.00E-3" -> '-0.00000'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
256 basx296 toSci "-0.0E-2" -> '-0.000'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
257 basx297 toSci "-0.0E-3" -> '-0.0000'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
258 basx298 toSci "-0E-2" -> '-0.00'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
259 basx299 toSci "-0E-3" -> '-0.000'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
260
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
261 -- Engineering notation tests
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
262 basx301 toSci 10e12 -> 1.0E+13
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
263 basx302 toEng 10e12 -> 10E+12
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
264 basx303 toSci 10e11 -> 1.0E+12
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
265 basx304 toEng 10e11 -> 1.0E+12
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
266 basx305 toSci 10e10 -> 1.0E+11
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
267 basx306 toEng 10e10 -> 100E+9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
268 basx307 toSci 10e9 -> 1.0E+10
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
269 basx308 toEng 10e9 -> 10E+9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
270 basx309 toSci 10e8 -> 1.0E+9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
271 basx310 toEng 10e8 -> 1.0E+9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
272 basx311 toSci 10e7 -> 1.0E+8
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
273 basx312 toEng 10e7 -> 100E+6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
274 basx313 toSci 10e6 -> 1.0E+7
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
275 basx314 toEng 10e6 -> 10E+6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
276 basx315 toSci 10e5 -> 1.0E+6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
277 basx316 toEng 10e5 -> 1.0E+6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
278 basx317 toSci 10e4 -> 1.0E+5
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
279 basx318 toEng 10e4 -> 100E+3
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
280 basx319 toSci 10e3 -> 1.0E+4
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
281 basx320 toEng 10e3 -> 10E+3
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
282 basx321 toSci 10e2 -> 1.0E+3
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
283 basx322 toEng 10e2 -> 1.0E+3
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
284 basx323 toSci 10e1 -> 1.0E+2
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
285 basx324 toEng 10e1 -> 100
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
286 basx325 toSci 10e0 -> 10
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
287 basx326 toEng 10e0 -> 10
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
288 basx327 toSci 10e-1 -> 1.0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
289 basx328 toEng 10e-1 -> 1.0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
290 basx329 toSci 10e-2 -> 0.10
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
291 basx330 toEng 10e-2 -> 0.10
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
292 basx331 toSci 10e-3 -> 0.010
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
293 basx332 toEng 10e-3 -> 0.010
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
294 basx333 toSci 10e-4 -> 0.0010
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
295 basx334 toEng 10e-4 -> 0.0010
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
296 basx335 toSci 10e-5 -> 0.00010
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
297 basx336 toEng 10e-5 -> 0.00010
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
298 basx337 toSci 10e-6 -> 0.000010
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
299 basx338 toEng 10e-6 -> 0.000010
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
300 basx339 toSci 10e-7 -> 0.0000010
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
301 basx340 toEng 10e-7 -> 0.0000010
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
302 basx341 toSci 10e-8 -> 1.0E-7
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
303 basx342 toEng 10e-8 -> 100E-9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
304 basx343 toSci 10e-9 -> 1.0E-8
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
305 basx344 toEng 10e-9 -> 10E-9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
306 basx345 toSci 10e-10 -> 1.0E-9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
307 basx346 toEng 10e-10 -> 1.0E-9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
308 basx347 toSci 10e-11 -> 1.0E-10
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
309 basx348 toEng 10e-11 -> 100E-12
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
310 basx349 toSci 10e-12 -> 1.0E-11
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
311 basx350 toEng 10e-12 -> 10E-12
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
312 basx351 toSci 10e-13 -> 1.0E-12
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
313 basx352 toEng 10e-13 -> 1.0E-12
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
314
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
315 basx361 toSci 7E12 -> 7E+12
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
316 basx362 toEng 7E12 -> 7E+12
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
317 basx363 toSci 7E11 -> 7E+11
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
318 basx364 toEng 7E11 -> 700E+9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
319 basx365 toSci 7E10 -> 7E+10
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
320 basx366 toEng 7E10 -> 70E+9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
321 basx367 toSci 7E9 -> 7E+9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
322 basx368 toEng 7E9 -> 7E+9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
323 basx369 toSci 7E8 -> 7E+8
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
324 basx370 toEng 7E8 -> 700E+6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
325 basx371 toSci 7E7 -> 7E+7
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
326 basx372 toEng 7E7 -> 70E+6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
327 basx373 toSci 7E6 -> 7E+6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
328 basx374 toEng 7E6 -> 7E+6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
329 basx375 toSci 7E5 -> 7E+5
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
330 basx376 toEng 7E5 -> 700E+3
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
331 basx377 toSci 7E4 -> 7E+4
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
332 basx378 toEng 7E4 -> 70E+3
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
333 basx379 toSci 7E3 -> 7E+3
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
334 basx380 toEng 7E3 -> 7E+3
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
335 basx381 toSci 7E2 -> 7E+2
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
336 basx382 toEng 7E2 -> 700
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
337 basx383 toSci 7E1 -> 7E+1
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
338 basx384 toEng 7E1 -> 70
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
339 basx385 toSci 7E0 -> 7
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
340 basx386 toEng 7E0 -> 7
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
341 basx387 toSci 7E-1 -> 0.7
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
342 basx388 toEng 7E-1 -> 0.7
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
343 basx389 toSci 7E-2 -> 0.07
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
344 basx390 toEng 7E-2 -> 0.07
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
345 basx391 toSci 7E-3 -> 0.007
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
346 basx392 toEng 7E-3 -> 0.007
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
347 basx393 toSci 7E-4 -> 0.0007
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
348 basx394 toEng 7E-4 -> 0.0007
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
349 basx395 toSci 7E-5 -> 0.00007
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
350 basx396 toEng 7E-5 -> 0.00007
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
351 basx397 toSci 7E-6 -> 0.000007
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
352 basx398 toEng 7E-6 -> 0.000007
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
353 basx399 toSci 7E-7 -> 7E-7
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
354 basx400 toEng 7E-7 -> 700E-9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
355 basx401 toSci 7E-8 -> 7E-8
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
356 basx402 toEng 7E-8 -> 70E-9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
357 basx403 toSci 7E-9 -> 7E-9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
358 basx404 toEng 7E-9 -> 7E-9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
359 basx405 toSci 7E-10 -> 7E-10
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
360 basx406 toEng 7E-10 -> 700E-12
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
361 basx407 toSci 7E-11 -> 7E-11
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
362 basx408 toEng 7E-11 -> 70E-12
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
363 basx409 toSci 7E-12 -> 7E-12
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
364 basx410 toEng 7E-12 -> 7E-12
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
365 basx411 toSci 7E-13 -> 7E-13
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
366 basx412 toEng 7E-13 -> 700E-15
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
367
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
368 -- Exacts remain exact up to precision ..
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
369 precision: 9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
370 basx420 toSci 100 -> 100
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
371 basx421 toEng 100 -> 100
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
372 basx422 toSci 1000 -> 1000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
373 basx423 toEng 1000 -> 1000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
374 basx424 toSci 999.9 -> 999.9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
375 basx425 toEng 999.9 -> 999.9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
376 basx426 toSci 1000.0 -> 1000.0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
377 basx427 toEng 1000.0 -> 1000.0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
378 basx428 toSci 1000.1 -> 1000.1
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
379 basx429 toEng 1000.1 -> 1000.1
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
380 basx430 toSci 10000 -> 10000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
381 basx431 toEng 10000 -> 10000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
382 basx432 toSci 100000 -> 100000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
383 basx433 toEng 100000 -> 100000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
384 basx434 toSci 1000000 -> 1000000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
385 basx435 toEng 1000000 -> 1000000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
386 basx436 toSci 10000000 -> 10000000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
387 basx437 toEng 10000000 -> 10000000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
388 basx438 toSci 100000000 -> 100000000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
389 basx439 toEng 100000000 -> 100000000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
390 basx440 toSci 1000000000 -> 1.00000000E+9 Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
391 basx441 toEng 1000000000 -> 1.00000000E+9 Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
392 basx442 toSci 1000000000 -> 1.00000000E+9 Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
393 basx443 toEng 1000000000 -> 1.00000000E+9 Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
394 basx444 toSci 1000000003 -> 1.00000000E+9 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
395 basx445 toEng 1000000003 -> 1.00000000E+9 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
396 basx446 toSci 1000000005 -> 1.00000001E+9 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
397 basx447 toEng 1000000005 -> 1.00000001E+9 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
398 basx448 toSci 10000000050 -> 1.00000001E+10 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
399 basx449 toEng 10000000050 -> 10.0000001E+9 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
400 basx450 toSci 1000000009 -> 1.00000001E+9 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
401 basx451 toEng 1000000009 -> 1.00000001E+9 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
402 basx452 toSci 10000000000 -> 1.00000000E+10 Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
403 basx453 toEng 10000000000 -> 10.0000000E+9 Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
404 basx454 toSci 10000000003 -> 1.00000000E+10 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
405 basx455 toEng 10000000003 -> 10.0000000E+9 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
406 basx456 toSci 10000000005 -> 1.00000000E+10 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
407 basx457 toEng 10000000005 -> 10.0000000E+9 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
408 basx458 toSci 10000000009 -> 1.00000000E+10 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
409 basx459 toEng 10000000009 -> 10.0000000E+9 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
410 basx460 toSci 100000000000 -> 1.00000000E+11 Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
411 basx461 toEng 100000000000 -> 100.000000E+9 Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
412 basx462 toSci 100000000300 -> 1.00000000E+11 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
413 basx463 toEng 100000000300 -> 100.000000E+9 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
414 basx464 toSci 100000000500 -> 1.00000001E+11 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
415 basx465 toEng 100000000500 -> 100.000001E+9 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
416 basx466 toSci 100000000900 -> 1.00000001E+11 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
417 basx467 toEng 100000000900 -> 100.000001E+9 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
418 basx468 toSci 1000000000000 -> 1.00000000E+12 Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
419 basx469 toEng 1000000000000 -> 1.00000000E+12 Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
420 basx470 toSci 1000000003000 -> 1.00000000E+12 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
421 basx471 toEng 1000000003000 -> 1.00000000E+12 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
422 basx472 toSci 1000000005000 -> 1.00000001E+12 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
423 basx473 toEng 1000000005000 -> 1.00000001E+12 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
424 basx474 toSci 1000000009000 -> 1.00000001E+12 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
425 basx475 toEng 1000000009000 -> 1.00000001E+12 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
426
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
427 -- all-nines rounding
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
428 precision: 9
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
429 rounding: half_up
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
430 basx270 toSci 999999999 -> 999999999
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
431 basx271 toSci 9999999990 -> 9.99999999E+9 Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
432 basx272 toSci 9999999991 -> 9.99999999E+9 Rounded Inexact
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
433 basx273 toSci 9999999992 -> 9.99999999E+9 Rounded Inexact
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
434 basx274 toSci 9999999993 -> 9.99999999E+9 Rounded Inexact
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
435 basx275 toSci 9999999994 -> 9.99999999E+9 Rounded Inexact
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
436 basx276 toSci 9999999995 -> 1.00000000E+10 Rounded Inexact
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
437 basx277 toSci 9999999996 -> 1.00000000E+10 Rounded Inexact
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
438 basx278 toSci 9999999997 -> 1.00000000E+10 Rounded Inexact
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
439 basx279 toSci 9999999998 -> 1.00000000E+10 Rounded Inexact
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
440 basx280 toSci 9999999999 -> 1.00000000E+10 Rounded Inexact
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
441 basx281 toSci 9999999999999999 -> 1.00000000E+16 Rounded Inexact
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
442
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
443 -- check rounding modes heeded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
444 precision: 5
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
445 rounding: ceiling
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
446 bsrx401 toSci 1.23450 -> 1.2345 Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
447 bsrx402 toSci 1.234549 -> 1.2346 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
448 bsrx403 toSci 1.234550 -> 1.2346 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
449 bsrx404 toSci 1.234551 -> 1.2346 Rounded Inexact
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
450 rounding: up
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
451 bsrx405 toSci 1.23450 -> 1.2345 Rounded
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
452 bsrx406 toSci 1.234549 -> 1.2346 Rounded Inexact
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
453 bsrx407 toSci 1.234550 -> 1.2346 Rounded Inexact
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
454 bsrx408 toSci 1.234551 -> 1.2346 Rounded Inexact
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
455 rounding: floor
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
456 bsrx410 toSci 1.23450 -> 1.2345 Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
457 bsrx411 toSci 1.234549 -> 1.2345 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
458 bsrx412 toSci 1.234550 -> 1.2345 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
459 bsrx413 toSci 1.234551 -> 1.2345 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
460 rounding: half_down
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
461 bsrx415 toSci 1.23450 -> 1.2345 Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
462 bsrx416 toSci 1.234549 -> 1.2345 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
463 bsrx417 toSci 1.234550 -> 1.2345 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
464 bsrx418 toSci 1.234650 -> 1.2346 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
465 bsrx419 toSci 1.234551 -> 1.2346 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
466 rounding: half_even
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
467 bsrx421 toSci 1.23450 -> 1.2345 Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
468 bsrx422 toSci 1.234549 -> 1.2345 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
469 bsrx423 toSci 1.234550 -> 1.2346 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
470 bsrx424 toSci 1.234650 -> 1.2346 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
471 bsrx425 toSci 1.234551 -> 1.2346 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
472 rounding: down
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
473 bsrx426 toSci 1.23450 -> 1.2345 Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
474 bsrx427 toSci 1.234549 -> 1.2345 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
475 bsrx428 toSci 1.234550 -> 1.2345 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
476 bsrx429 toSci 1.234551 -> 1.2345 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
477 rounding: half_up
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
478 bsrx431 toSci 1.23450 -> 1.2345 Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
479 bsrx432 toSci 1.234549 -> 1.2345 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
480 bsrx433 toSci 1.234550 -> 1.2346 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
481 bsrx434 toSci 1.234650 -> 1.2347 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
482 bsrx435 toSci 1.234551 -> 1.2346 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
483 -- negatives
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
484 rounding: ceiling
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
485 bsrx501 toSci -1.23450 -> -1.2345 Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
486 bsrx502 toSci -1.234549 -> -1.2345 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
487 bsrx503 toSci -1.234550 -> -1.2345 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
488 bsrx504 toSci -1.234551 -> -1.2345 Rounded Inexact
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
489 rounding: up
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
490 bsrx505 toSci -1.23450 -> -1.2345 Rounded
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
491 bsrx506 toSci -1.234549 -> -1.2346 Rounded Inexact
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
492 bsrx507 toSci -1.234550 -> -1.2346 Rounded Inexact
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
493 bsrx508 toSci -1.234551 -> -1.2346 Rounded Inexact
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
494 rounding: floor
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
495 bsrx510 toSci -1.23450 -> -1.2345 Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
496 bsrx511 toSci -1.234549 -> -1.2346 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
497 bsrx512 toSci -1.234550 -> -1.2346 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
498 bsrx513 toSci -1.234551 -> -1.2346 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
499 rounding: half_down
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
500 bsrx515 toSci -1.23450 -> -1.2345 Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
501 bsrx516 toSci -1.234549 -> -1.2345 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
502 bsrx517 toSci -1.234550 -> -1.2345 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
503 bsrx518 toSci -1.234650 -> -1.2346 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
504 bsrx519 toSci -1.234551 -> -1.2346 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
505 rounding: half_even
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
506 bsrx521 toSci -1.23450 -> -1.2345 Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
507 bsrx522 toSci -1.234549 -> -1.2345 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
508 bsrx523 toSci -1.234550 -> -1.2346 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
509 bsrx524 toSci -1.234650 -> -1.2346 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
510 bsrx525 toSci -1.234551 -> -1.2346 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
511 rounding: down
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
512 bsrx526 toSci -1.23450 -> -1.2345 Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
513 bsrx527 toSci -1.234549 -> -1.2345 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
514 bsrx528 toSci -1.234550 -> -1.2345 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
515 bsrx529 toSci -1.234551 -> -1.2345 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
516 rounding: half_up
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
517 bsrx531 toSci -1.23450 -> -1.2345 Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
518 bsrx532 toSci -1.234549 -> -1.2345 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
519 bsrx533 toSci -1.234550 -> -1.2346 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
520 bsrx534 toSci -1.234650 -> -1.2347 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
521 bsrx535 toSci -1.234551 -> -1.2346 Rounded Inexact
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
522
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
523 -- a few larger exponents
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
524 maxExponent: 999999999
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
525 minExponent: -999999999
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
526 basx480 toSci "0.09e999" -> '9E+997'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
527 basx481 toSci "0.9e999" -> '9E+998'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
528 basx482 toSci "9e999" -> '9E+999'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
529 basx483 toSci "9.9e999" -> '9.9E+999'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
530 basx484 toSci "9.99e999" -> '9.99E+999'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
531 basx485 toSci "9.99e-999" -> '9.99E-999'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
532 basx486 toSci "9.9e-999" -> '9.9E-999'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
533 basx487 toSci "9e-999" -> '9E-999'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
534 basx489 toSci "99e-999" -> '9.9E-998'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
535 basx490 toSci "999e-999" -> '9.99E-997'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
536 basx491 toSci '0.9e-998' -> '9E-999'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
537 basx492 toSci '0.09e-997' -> '9E-999'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
538 basx493 toSci '0.1e1000' -> '1E+999'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
539 basx494 toSci '10e-1000' -> '1.0E-999'
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
540
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
541 rounding: half_up
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
542 precision: 9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
543
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
544 -- The 'baddies' tests from DiagBigDecimal, plus some new ones
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
545 basx500 toSci '1..2' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
546 basx501 toSci '.' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
547 basx502 toSci '..' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
548 basx503 toSci '++1' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
549 basx504 toSci '--1' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
550 basx505 toSci '-+1' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
551 basx506 toSci '+-1' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
552 basx507 toSci '12e' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
553 basx508 toSci '12e++' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
554 basx509 toSci '12f4' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
555 basx510 toSci ' +1' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
556 basx511 toSci '+ 1' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
557 basx512 toSci '12 ' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
558 basx513 toSci ' + 1' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
559 basx514 toSci ' - 1 ' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
560 basx515 toSci 'x' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
561 basx516 toSci '-1-' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
562 basx517 toSci '12-' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
563 basx518 toSci '3+' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
564 basx519 toSci '' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
565 basx520 toSci '1e-' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
566 basx521 toSci '7e99999a' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
567 basx522 toSci '7e123567890x' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
568 basx523 toSci '7e12356789012x' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
569 basx524 toSci '' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
570 basx525 toSci 'e100' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
571 basx526 toSci '\u0e5a' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
572 basx527 toSci '\u0b65' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
573 basx528 toSci '123,65' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
574 basx529 toSci '1.34.5' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
575 basx530 toSci '.123.5' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
576 basx531 toSci '01.35.' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
577 basx532 toSci '01.35-' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
578 basx533 toSci '0000..' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
579 basx534 toSci '.0000.' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
580 basx535 toSci '00..00' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
581 basx536 toSci '111e*123' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
582 basx537 toSci '111e123-' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
583 basx538 toSci '111e+12+' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
584 basx539 toSci '111e1-3-' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
585 basx540 toSci '111e1*23' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
586 basx541 toSci '111e1e+3' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
587 basx542 toSci '1e1.0' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
588 basx543 toSci '1e123e' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
589 basx544 toSci 'ten' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
590 basx545 toSci 'ONE' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
591 basx546 toSci '1e.1' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
592 basx547 toSci '1e1.' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
593 basx548 toSci '1ee' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
594 basx549 toSci 'e+1' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
595 basx550 toSci '1.23.4' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
596 basx551 toSci '1.2.1' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
597 basx552 toSci '1E+1.2' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
598 basx553 toSci '1E+1.2.3' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
599 basx554 toSci '1E++1' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
600 basx555 toSci '1E--1' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
601 basx556 toSci '1E+-1' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
602 basx557 toSci '1E-+1' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
603 basx558 toSci '1E''1' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
604 basx559 toSci "1E""1" -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
605 basx560 toSci "1E""""" -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
606 -- Near-specials
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
607 basx561 toSci "qNaN" -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
608 basx562 toSci "NaNq" -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
609 basx563 toSci "NaNs" -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
610 basx564 toSci "Infi" -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
611 basx565 toSci "Infin" -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
612 basx566 toSci "Infini" -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
613 basx567 toSci "Infinit" -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
614 basx568 toSci "-Infinit" -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
615 basx569 toSci "0Inf" -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
616 basx570 toSci "9Inf" -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
617 basx571 toSci "-0Inf" -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
618 basx572 toSci "-9Inf" -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
619 basx573 toSci "-sNa" -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
620 basx574 toSci "xNaN" -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
621 basx575 toSci "0sNaN" -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
622
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
623 -- some baddies with dots and Es and dots and specials
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
624 basx576 toSci 'e+1' -> NaN Conversion_syntax
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
625 basx577 toSci '.e+1' -> NaN Conversion_syntax
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
626 basx578 toSci '+.e+1' -> NaN Conversion_syntax
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
627 basx579 toSci '-.e+' -> NaN Conversion_syntax
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
628 basx580 toSci '-.e' -> NaN Conversion_syntax
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
629 basx581 toSci 'E+1' -> NaN Conversion_syntax
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
630 basx582 toSci '.E+1' -> NaN Conversion_syntax
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
631 basx583 toSci '+.E+1' -> NaN Conversion_syntax
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
632 basx584 toSci '-.E+' -> NaN Conversion_syntax
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
633 basx585 toSci '-.E' -> NaN Conversion_syntax
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
634
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
635 basx586 toSci '.NaN' -> NaN Conversion_syntax
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
636 basx587 toSci '-.NaN' -> NaN Conversion_syntax
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
637 basx588 toSci '+.sNaN' -> NaN Conversion_syntax
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
638 basx589 toSci '+.Inf' -> NaN Conversion_syntax
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
639 basx590 toSci '.Infinity' -> NaN Conversion_syntax
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
640
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
641 -- Zeros
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
642 basx601 toSci 0.000000000 -> 0E-9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
643 basx602 toSci 0.00000000 -> 0E-8
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
644 basx603 toSci 0.0000000 -> 0E-7
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
645 basx604 toSci 0.000000 -> 0.000000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
646 basx605 toSci 0.00000 -> 0.00000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
647 basx606 toSci 0.0000 -> 0.0000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
648 basx607 toSci 0.000 -> 0.000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
649 basx608 toSci 0.00 -> 0.00
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
650 basx609 toSci 0.0 -> 0.0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
651 basx610 toSci .0 -> 0.0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
652 basx611 toSci 0. -> 0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
653 basx612 toSci -.0 -> -0.0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
654 basx613 toSci -0. -> -0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
655 basx614 toSci -0.0 -> -0.0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
656 basx615 toSci -0.00 -> -0.00
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
657 basx616 toSci -0.000 -> -0.000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
658 basx617 toSci -0.0000 -> -0.0000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
659 basx618 toSci -0.00000 -> -0.00000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
660 basx619 toSci -0.000000 -> -0.000000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
661 basx620 toSci -0.0000000 -> -0E-7
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
662 basx621 toSci -0.00000000 -> -0E-8
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
663 basx622 toSci -0.000000000 -> -0E-9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
664
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
665 basx630 toSci 0.00E+0 -> 0.00
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
666 basx631 toSci 0.00E+1 -> 0.0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
667 basx632 toSci 0.00E+2 -> 0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
668 basx633 toSci 0.00E+3 -> 0E+1
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
669 basx634 toSci 0.00E+4 -> 0E+2
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
670 basx635 toSci 0.00E+5 -> 0E+3
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
671 basx636 toSci 0.00E+6 -> 0E+4
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
672 basx637 toSci 0.00E+7 -> 0E+5
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
673 basx638 toSci 0.00E+8 -> 0E+6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
674 basx639 toSci 0.00E+9 -> 0E+7
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
675
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
676 basx640 toSci 0.0E+0 -> 0.0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
677 basx641 toSci 0.0E+1 -> 0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
678 basx642 toSci 0.0E+2 -> 0E+1
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
679 basx643 toSci 0.0E+3 -> 0E+2
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
680 basx644 toSci 0.0E+4 -> 0E+3
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
681 basx645 toSci 0.0E+5 -> 0E+4
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
682 basx646 toSci 0.0E+6 -> 0E+5
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
683 basx647 toSci 0.0E+7 -> 0E+6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
684 basx648 toSci 0.0E+8 -> 0E+7
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
685 basx649 toSci 0.0E+9 -> 0E+8
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
686
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
687 basx650 toSci 0E+0 -> 0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
688 basx651 toSci 0E+1 -> 0E+1
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
689 basx652 toSci 0E+2 -> 0E+2
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
690 basx653 toSci 0E+3 -> 0E+3
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
691 basx654 toSci 0E+4 -> 0E+4
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
692 basx655 toSci 0E+5 -> 0E+5
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
693 basx656 toSci 0E+6 -> 0E+6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
694 basx657 toSci 0E+7 -> 0E+7
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
695 basx658 toSci 0E+8 -> 0E+8
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
696 basx659 toSci 0E+9 -> 0E+9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
697
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
698 basx660 toSci 0.0E-0 -> 0.0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
699 basx661 toSci 0.0E-1 -> 0.00
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
700 basx662 toSci 0.0E-2 -> 0.000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
701 basx663 toSci 0.0E-3 -> 0.0000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
702 basx664 toSci 0.0E-4 -> 0.00000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
703 basx665 toSci 0.0E-5 -> 0.000000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
704 basx666 toSci 0.0E-6 -> 0E-7
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
705 basx667 toSci 0.0E-7 -> 0E-8
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
706 basx668 toSci 0.0E-8 -> 0E-9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
707 basx669 toSci 0.0E-9 -> 0E-10
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
708
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
709 basx670 toSci 0.00E-0 -> 0.00
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
710 basx671 toSci 0.00E-1 -> 0.000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
711 basx672 toSci 0.00E-2 -> 0.0000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
712 basx673 toSci 0.00E-3 -> 0.00000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
713 basx674 toSci 0.00E-4 -> 0.000000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
714 basx675 toSci 0.00E-5 -> 0E-7
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
715 basx676 toSci 0.00E-6 -> 0E-8
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
716 basx677 toSci 0.00E-7 -> 0E-9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
717 basx678 toSci 0.00E-8 -> 0E-10
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
718 basx679 toSci 0.00E-9 -> 0E-11
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
719
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
720 basx680 toSci 000000. -> 0
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
721 basx681 toSci 00000. -> 0
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
722 basx682 toSci 0000. -> 0
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
723 basx683 toSci 000. -> 0
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
724 basx684 toSci 00. -> 0
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
725 basx685 toSci 0. -> 0
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
726 basx686 toSci +00000. -> 0
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
727 basx687 toSci -00000. -> -0
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
728 basx688 toSci +0. -> 0
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
729 basx689 toSci -0. -> -0
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
730
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
731 -- Specials
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
732 precision: 4
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
733 basx700 toSci "NaN" -> NaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
734 basx701 toSci "nan" -> NaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
735 basx702 toSci "nAn" -> NaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
736 basx703 toSci "NAN" -> NaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
737 basx704 toSci "+NaN" -> NaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
738 basx705 toSci "+nan" -> NaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
739 basx706 toSci "+nAn" -> NaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
740 basx707 toSci "+NAN" -> NaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
741 basx708 toSci "-NaN" -> -NaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
742 basx709 toSci "-nan" -> -NaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
743 basx710 toSci "-nAn" -> -NaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
744 basx711 toSci "-NAN" -> -NaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
745 basx712 toSci 'NaN0' -> NaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
746 basx713 toSci 'NaN1' -> NaN1
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
747 basx714 toSci 'NaN12' -> NaN12
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
748 basx715 toSci 'NaN123' -> NaN123
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
749 basx716 toSci 'NaN1234' -> NaN1234
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
750 basx717 toSci 'NaN01' -> NaN1
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
751 basx718 toSci 'NaN012' -> NaN12
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
752 basx719 toSci 'NaN0123' -> NaN123
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
753 basx720 toSci 'NaN01234' -> NaN1234
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
754 basx721 toSci 'NaN001' -> NaN1
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
755 basx722 toSci 'NaN0012' -> NaN12
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
756 basx723 toSci 'NaN00123' -> NaN123
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
757 basx724 toSci 'NaN001234' -> NaN1234
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
758 basx725 toSci 'NaN12345' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
759 basx726 toSci 'NaN123e+1' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
760 basx727 toSci 'NaN12.45' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
761 basx728 toSci 'NaN-12' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
762 basx729 toSci 'NaN+12' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
763
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
764 basx730 toSci "sNaN" -> sNaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
765 basx731 toSci "snan" -> sNaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
766 basx732 toSci "SnAn" -> sNaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
767 basx733 toSci "SNAN" -> sNaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
768 basx734 toSci "+sNaN" -> sNaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
769 basx735 toSci "+snan" -> sNaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
770 basx736 toSci "+SnAn" -> sNaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
771 basx737 toSci "+SNAN" -> sNaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
772 basx738 toSci "-sNaN" -> -sNaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
773 basx739 toSci "-snan" -> -sNaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
774 basx740 toSci "-SnAn" -> -sNaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
775 basx741 toSci "-SNAN" -> -sNaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
776 basx742 toSci 'sNaN0000' -> sNaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
777 basx743 toSci 'sNaN7' -> sNaN7
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
778 basx744 toSci 'sNaN007234' -> sNaN7234
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
779 basx745 toSci 'sNaN72345' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
780 basx746 toSci 'sNaN72.45' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
781 basx747 toSci 'sNaN-72' -> NaN Conversion_syntax
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
782
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
783 basx748 toSci "Inf" -> Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
784 basx749 toSci "inf" -> Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
785 basx750 toSci "iNf" -> Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
786 basx751 toSci "INF" -> Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
787 basx752 toSci "+Inf" -> Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
788 basx753 toSci "+inf" -> Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
789 basx754 toSci "+iNf" -> Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
790 basx755 toSci "+INF" -> Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
791 basx756 toSci "-Inf" -> -Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
792 basx757 toSci "-inf" -> -Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
793 basx758 toSci "-iNf" -> -Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
794 basx759 toSci "-INF" -> -Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
795
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
796 basx760 toSci "Infinity" -> Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
797 basx761 toSci "infinity" -> Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
798 basx762 toSci "iNfInItY" -> Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
799 basx763 toSci "INFINITY" -> Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
800 basx764 toSci "+Infinity" -> Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
801 basx765 toSci "+infinity" -> Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
802 basx766 toSci "+iNfInItY" -> Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
803 basx767 toSci "+INFINITY" -> Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
804 basx768 toSci "-Infinity" -> -Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
805 basx769 toSci "-infinity" -> -Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
806 basx770 toSci "-iNfInItY" -> -Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
807 basx771 toSci "-INFINITY" -> -Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
808
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
809 -- Specials and zeros for toEng
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
810 basx772 toEng "NaN" -> NaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
811 basx773 toEng "-Infinity" -> -Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
812 basx774 toEng "-sNaN" -> -sNaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
813 basx775 toEng "-NaN" -> -NaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
814 basx776 toEng "+Infinity" -> Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
815 basx778 toEng "+sNaN" -> sNaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
816 basx779 toEng "+NaN" -> NaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
817 basx780 toEng "INFINITY" -> Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
818 basx781 toEng "SNAN" -> sNaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
819 basx782 toEng "NAN" -> NaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
820 basx783 toEng "infinity" -> Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
821 basx784 toEng "snan" -> sNaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
822 basx785 toEng "nan" -> NaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
823 basx786 toEng "InFINITY" -> Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
824 basx787 toEng "SnAN" -> sNaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
825 basx788 toEng "nAN" -> NaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
826 basx789 toEng "iNfinity" -> Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
827 basx790 toEng "sNan" -> sNaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
828 basx791 toEng "Nan" -> NaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
829 basx792 toEng "Infinity" -> Infinity
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
830 basx793 toEng "sNaN" -> sNaN
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
831
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
832 -- Zero toEng, etc.
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
833 basx800 toEng 0e+1 -> "0.00E+3" -- doc example
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
834
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
835 basx801 toEng 0.000000000 -> 0E-9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
836 basx802 toEng 0.00000000 -> 0.00E-6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
837 basx803 toEng 0.0000000 -> 0.0E-6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
838 basx804 toEng 0.000000 -> 0.000000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
839 basx805 toEng 0.00000 -> 0.00000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
840 basx806 toEng 0.0000 -> 0.0000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
841 basx807 toEng 0.000 -> 0.000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
842 basx808 toEng 0.00 -> 0.00
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
843 basx809 toEng 0.0 -> 0.0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
844 basx810 toEng .0 -> 0.0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
845 basx811 toEng 0. -> 0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
846 basx812 toEng -.0 -> -0.0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
847 basx813 toEng -0. -> -0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
848 basx814 toEng -0.0 -> -0.0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
849 basx815 toEng -0.00 -> -0.00
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
850 basx816 toEng -0.000 -> -0.000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
851 basx817 toEng -0.0000 -> -0.0000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
852 basx818 toEng -0.00000 -> -0.00000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
853 basx819 toEng -0.000000 -> -0.000000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
854 basx820 toEng -0.0000000 -> -0.0E-6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
855 basx821 toEng -0.00000000 -> -0.00E-6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
856 basx822 toEng -0.000000000 -> -0E-9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
857
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
858 basx830 toEng 0.00E+0 -> 0.00
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
859 basx831 toEng 0.00E+1 -> 0.0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
860 basx832 toEng 0.00E+2 -> 0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
861 basx833 toEng 0.00E+3 -> 0.00E+3
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
862 basx834 toEng 0.00E+4 -> 0.0E+3
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
863 basx835 toEng 0.00E+5 -> 0E+3
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
864 basx836 toEng 0.00E+6 -> 0.00E+6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
865 basx837 toEng 0.00E+7 -> 0.0E+6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
866 basx838 toEng 0.00E+8 -> 0E+6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
867 basx839 toEng 0.00E+9 -> 0.00E+9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
868
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
869 basx840 toEng 0.0E+0 -> 0.0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
870 basx841 toEng 0.0E+1 -> 0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
871 basx842 toEng 0.0E+2 -> 0.00E+3
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
872 basx843 toEng 0.0E+3 -> 0.0E+3
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
873 basx844 toEng 0.0E+4 -> 0E+3
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
874 basx845 toEng 0.0E+5 -> 0.00E+6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
875 basx846 toEng 0.0E+6 -> 0.0E+6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
876 basx847 toEng 0.0E+7 -> 0E+6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
877 basx848 toEng 0.0E+8 -> 0.00E+9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
878 basx849 toEng 0.0E+9 -> 0.0E+9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
879
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
880 basx850 toEng 0E+0 -> 0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
881 basx851 toEng 0E+1 -> 0.00E+3
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
882 basx852 toEng 0E+2 -> 0.0E+3
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
883 basx853 toEng 0E+3 -> 0E+3
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
884 basx854 toEng 0E+4 -> 0.00E+6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
885 basx855 toEng 0E+5 -> 0.0E+6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
886 basx856 toEng 0E+6 -> 0E+6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
887 basx857 toEng 0E+7 -> 0.00E+9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
888 basx858 toEng 0E+8 -> 0.0E+9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
889 basx859 toEng 0E+9 -> 0E+9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
890
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
891 basx860 toEng 0.0E-0 -> 0.0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
892 basx861 toEng 0.0E-1 -> 0.00
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
893 basx862 toEng 0.0E-2 -> 0.000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
894 basx863 toEng 0.0E-3 -> 0.0000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
895 basx864 toEng 0.0E-4 -> 0.00000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
896 basx865 toEng 0.0E-5 -> 0.000000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
897 basx866 toEng 0.0E-6 -> 0.0E-6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
898 basx867 toEng 0.0E-7 -> 0.00E-6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
899 basx868 toEng 0.0E-8 -> 0E-9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
900 basx869 toEng 0.0E-9 -> 0.0E-9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
901
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
902 basx870 toEng 0.00E-0 -> 0.00
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
903 basx871 toEng 0.00E-1 -> 0.000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
904 basx872 toEng 0.00E-2 -> 0.0000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
905 basx873 toEng 0.00E-3 -> 0.00000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
906 basx874 toEng 0.00E-4 -> 0.000000
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
907 basx875 toEng 0.00E-5 -> 0.0E-6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
908 basx876 toEng 0.00E-6 -> 0.00E-6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
909 basx877 toEng 0.00E-7 -> 0E-9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
910 basx878 toEng 0.00E-8 -> 0.0E-9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
911 basx879 toEng 0.00E-9 -> 0.00E-9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
912
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
913
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
914 rounding: half_up
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
915 precision: 9
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
916 -- subnormals and overflows
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
917 basx906 toSci '99e999999999' -> Infinity Overflow Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
918 basx907 toSci '999e999999999' -> Infinity Overflow Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
919 basx908 toSci '0.9e-999999999' -> 9E-1000000000 Subnormal
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
920 basx909 toSci '0.09e-999999999' -> 9E-1000000001 Subnormal
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
921 basx910 toSci '0.1e1000000000' -> 1E+999999999
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
922 basx911 toSci '10e-1000000000' -> 1.0E-999999999
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
923 basx912 toSci '0.9e9999999999' -> Infinity Overflow Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
924 basx913 toSci '99e-9999999999' -> 0E-1000000007 Underflow Subnormal Inexact Rounded Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
925 basx914 toSci '111e9999999999' -> Infinity Overflow Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
926 basx915 toSci '1111e-9999999999' -> 0E-1000000007 Underflow Subnormal Inexact Rounded Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
927 basx916 toSci '1111e-99999999999' -> 0E-1000000007 Underflow Subnormal Inexact Rounded Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
928 basx917 toSci '7e1000000000' -> Infinity Overflow Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
929 -- negatives the same
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
930 basx918 toSci '-99e999999999' -> -Infinity Overflow Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
931 basx919 toSci '-999e999999999' -> -Infinity Overflow Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
932 basx920 toSci '-0.9e-999999999' -> -9E-1000000000 Subnormal
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
933 basx921 toSci '-0.09e-999999999' -> -9E-1000000001 Subnormal
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
934 basx922 toSci '-0.1e1000000000' -> -1E+999999999
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
935 basx923 toSci '-10e-1000000000' -> -1.0E-999999999
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
936 basx924 toSci '-0.9e9999999999' -> -Infinity Overflow Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
937 basx925 toSci '-99e-9999999999' -> -0E-1000000007 Underflow Subnormal Inexact Rounded Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
938 basx926 toSci '-111e9999999999' -> -Infinity Overflow Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
939 basx927 toSci '-1111e-9999999999' -> -0E-1000000007 Underflow Subnormal Inexact Rounded Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
940 basx928 toSci '-1111e-99999999999' -> -0E-1000000007 Underflow Subnormal Inexact Rounded Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
941 basx929 toSci '-7e1000000000' -> -Infinity Overflow Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
942
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
943 rounding: ceiling
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
944 basx930 toSci '7e1000000000' -> Infinity Overflow Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
945 basx931 toSci '-7e1000000000' -> -9.99999999E+999999999 Overflow Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
946 rounding: up
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
947 basx932 toSci '7e1000000000' -> Infinity Overflow Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
948 basx933 toSci '-7e1000000000' -> -Infinity Overflow Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
949 rounding: down
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
950 basx934 toSci '7e1000000000' -> 9.99999999E+999999999 Overflow Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
951 basx935 toSci '-7e1000000000' -> -9.99999999E+999999999 Overflow Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
952 rounding: floor
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
953 basx936 toSci '7e1000000000' -> 9.99999999E+999999999 Overflow Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
954 basx937 toSci '-7e1000000000' -> -Infinity Overflow Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
955
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
956 rounding: half_up
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
957 basx938 toSci '7e1000000000' -> Infinity Overflow Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
958 basx939 toSci '-7e1000000000' -> -Infinity Overflow Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
959 rounding: half_even
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
960 basx940 toSci '7e1000000000' -> Infinity Overflow Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
961 basx941 toSci '-7e1000000000' -> -Infinity Overflow Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
962 rounding: half_down
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
963 basx942 toSci '7e1000000000' -> Infinity Overflow Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
964 basx943 toSci '-7e1000000000' -> -Infinity Overflow Inexact Rounded
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
965
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
966 rounding: half_even
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
967
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
968
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
969 -- Giga exponent initial tests
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
970 maxExponent: 999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
971 minExponent: -999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
972
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
973 basx951 toSci '99e999' -> '9.9E+1000'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
974 basx952 toSci '999e999' -> '9.99E+1001'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
975 basx953 toSci '0.9e-999' -> '9E-1000'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
976 basx954 toSci '0.09e-999' -> '9E-1001'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
977 basx955 toSci '0.1e1001' -> '1E+1000'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
978 basx956 toSci '10e-1001' -> '1.0E-1000'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
979 basx957 toSci '0.9e9999' -> '9E+9998'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
980 basx958 toSci '99e-9999' -> '9.9E-9998'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
981 basx959 toSci '111e9997' -> '1.11E+9999'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
982 basx960 toSci '1111e-9999' -> '1.111E-9996'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
983 basx961 toSci '99e9999' -> '9.9E+10000'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
984 basx962 toSci '999e9999' -> '9.99E+10001'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
985 basx963 toSci '0.9e-9999' -> '9E-10000'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
986 basx964 toSci '0.09e-9999' -> '9E-10001'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
987 basx965 toSci '0.1e10001' -> '1E+10000'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
988 basx966 toSci '10e-10001' -> '1.0E-10000'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
989 basx967 toSci '0.9e99999' -> '9E+99998'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
990 basx968 toSci '99e-99999' -> '9.9E-99998'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
991 basx969 toSci '111e99999' -> '1.11E+100001'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
992 basx970 toSci '1111e-99999' -> '1.111E-99996'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
993 basx971 toSci "0.09e999999999" -> '9E+999999997'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
994 basx972 toSci "0.9e999999999" -> '9E+999999998'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
995 basx973 toSci "9e999999999" -> '9E+999999999'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
996 basx974 toSci "9.9e999999999" -> '9.9E+999999999'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
997 basx975 toSci "9.99e999999999" -> '9.99E+999999999'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
998 basx976 toSci "9.99e-999999999" -> '9.99E-999999999'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
999 basx977 toSci "9.9e-999999999" -> '9.9E-999999999'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1000 basx978 toSci "9e-999999999" -> '9E-999999999'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1001 basx979 toSci "99e-999999999" -> '9.9E-999999998'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1002 basx980 toSci "999e-999999999" -> '9.99E-999999997'
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1003
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1004 -- Varying exponent maximums
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1005 precision: 5
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1006 maxexponent: 0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1007 minexponent: 0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1008 emax001 toSci -1E+2 -> -Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1009 emax002 toSci -100 -> -Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1010 emax003 toSci -10 -> -Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1011 emax004 toSci -9.9 -> -9.9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1012 emax005 toSci -9 -> -9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1013 emax006 toSci -1 -> -1
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1014 emax007 toSci 0 -> 0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1015 emax008 toSci 1 -> 1
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1016 emax009 toSci 9 -> 9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1017 emax010 toSci 9.9 -> 9.9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1018 emax011 toSci 10 -> Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1019 emax012 toSci 100 -> Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1020 emax013 toSci 1E+2 -> Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1021 emax014 toSci 0.99 -> 0.99 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1022 emax015 toSci 0.1 -> 0.1 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1023 emax016 toSci 0.01 -> 0.01 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1024 emax017 toSci 1E-1 -> 0.1 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1025 emax018 toSci 1E-2 -> 0.01 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1026
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1027 maxexponent: 1
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1028 minexponent: -1
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1029 emax100 toSci -1E+3 -> -Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1030 emax101 toSci -1E+2 -> -Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1031 emax102 toSci -100 -> -Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1032 emax103 toSci -10 -> -10
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1033 emax104 toSci -9.9 -> -9.9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1034 emax105 toSci -9 -> -9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1035 emax106 toSci -1 -> -1
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1036 emax107 toSci 0 -> 0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1037 emax108 toSci 1 -> 1
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1038 emax109 toSci 9 -> 9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1039 emax110 toSci 9.9 -> 9.9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1040 emax111 toSci 10 -> 10
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1041 emax112 toSci 100 -> Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1042 emax113 toSci 1E+2 -> Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1043 emax114 toSci 1E+3 -> Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1044 emax115 toSci 0.99 -> 0.99
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1045 emax116 toSci 0.1 -> 0.1
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1046 emax117 toSci 0.01 -> 0.01 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1047 emax118 toSci 1E-1 -> 0.1
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1048 emax119 toSci 1E-2 -> 0.01 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1049 emax120 toSci 1E-3 -> 0.001 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1050 emax121 toSci 1.1E-3 -> 0.0011 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1051 emax122 toSci 1.11E-3 -> 0.00111 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1052 emax123 toSci 1.111E-3 -> 0.00111 Subnormal Underflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1053 emax124 toSci 1.1111E-3 -> 0.00111 Subnormal Underflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1054 emax125 toSci 1.11111E-3 -> 0.00111 Subnormal Underflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1055
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1056 maxexponent: 2
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1057 minexponent: -2
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1058 precision: 9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1059 emax200 toSci -1E+3 -> -Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1060 emax201 toSci -1E+2 -> -1E+2
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1061 emax202 toSci -100 -> -100
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1062 emax203 toSci -10 -> -10
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1063 emax204 toSci -9.9 -> -9.9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1064 emax205 toSci -9 -> -9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1065 emax206 toSci -1 -> -1
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1066 emax207 toSci 0 -> 0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1067 emax208 toSci 1 -> 1
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1068 emax209 toSci 9 -> 9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1069 emax210 toSci 9.9 -> 9.9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1070 emax211 toSci 10 -> 10
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1071 emax212 toSci 100 -> 100
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1072 emax213 toSci 1E+2 -> 1E+2
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1073 emax214 toSci 1E+3 -> Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1074 emax215 toSci 0.99 -> 0.99
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1075 emax216 toSci 0.1 -> 0.1
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1076 emax217 toSci 0.01 -> 0.01
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1077 emax218 toSci 0.001 -> 0.001 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1078 emax219 toSci 1E-1 -> 0.1
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1079 emax220 toSci 1E-2 -> 0.01
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1080 emax221 toSci 1E-3 -> 0.001 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1081 emax222 toSci 1E-4 -> 0.0001 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1082 emax223 toSci 1E-5 -> 0.00001 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1083 emax224 toSci 1E-6 -> 0.000001 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1084 emax225 toSci 1E-7 -> 1E-7 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1085 emax226 toSci 1E-8 -> 1E-8 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1086 emax227 toSci 1E-9 -> 1E-9 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1087 emax228 toSci 1E-10 -> 1E-10 Subnormal
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1088 emax229 toSci 1E-11 -> 0E-10 Underflow Subnormal Inexact Rounded Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1089 emax230 toSci 1E-12 -> 0E-10 Underflow Subnormal Inexact Rounded Clamped
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1090
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1091 maxexponent: 7
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1092 minexponent: -7
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1093 emax231 toSci 1E-8 -> 1E-8 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1094 emax232 toSci 1E-7 -> 1E-7
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1095 emax233 toSci 1E-6 -> 0.000001
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1096 emax234 toSci 1E-5 -> 0.00001
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1097 emax235 toSci 1E+5 -> 1E+5
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1098 emax236 toSci 1E+6 -> 1E+6
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1099 emax237 toSci 1E+7 -> 1E+7
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1100 emax238 toSci 1E+8 -> Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1101
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1102 maxexponent: 9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1103 minexponent: -9
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1104 emax240 toSci 1E-21 -> 0E-17 Subnormal Underflow Inexact Rounded Clamped
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1105 emax241 toSci 1E-10 -> 1E-10 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1106 emax242 toSci 1E-9 -> 1E-9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1107 emax243 toSci 1E-8 -> 1E-8
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1108 emax244 toSci 1E-7 -> 1E-7
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1109 emax245 toSci 1E+7 -> 1E+7
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1110 emax246 toSci 1E+8 -> 1E+8
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1111 emax247 toSci 1E+9 -> 1E+9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1112 emax248 toSci 1E+10 -> Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1113
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1114 maxexponent: 10 -- boundary
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1115 minexponent: -10
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1116 emax250 toSci 1E-21 -> 0E-18 Underflow Subnormal Inexact Rounded Clamped
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1117 emax251 toSci 1E-11 -> 1E-11 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1118 emax252 toSci 1E-10 -> 1E-10
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1119 emax253 toSci 1E-9 -> 1E-9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1120 emax254 toSci 1E-8 -> 1E-8
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1121 emax255 toSci 1E+8 -> 1E+8
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1122 emax256 toSci 1E+9 -> 1E+9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1123 emax257 toSci 1E+10 -> 1E+10
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1124 emax258 toSci 1E+11 -> Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1125
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1126 emax260 toSci 1.00E-21 -> 0E-18 Underflow Subnormal Inexact Rounded Clamped
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1127 emax261 toSci 1.00E-11 -> 1.00E-11 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1128 emax262 toSci 1.00E-10 -> 1.00E-10
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1129 emax263 toSci 1.00E-9 -> 1.00E-9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1130 emax264 toSci 1.00E-8 -> 1.00E-8
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1131 emax265 toSci 1.00E+8 -> 1.00E+8
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1132 emax266 toSci 1.00E+9 -> 1.00E+9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1133 emax267 toSci 1.00E+10 -> 1.00E+10
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1134 emax268 toSci 1.00E+11 -> Infinity Overflow Inexact Rounded
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1135 emax270 toSci 9.99E-21 -> 0E-18 Underflow Subnormal Inexact Rounded Clamped
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1136 emax271 toSci 9.99E-11 -> 9.99E-11 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1137 emax272 toSci 9.99E-10 -> 9.99E-10
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1138 emax273 toSci 9.99E-9 -> 9.99E-9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1139 emax274 toSci 9.99E-8 -> 9.99E-8
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1140 emax275 toSci 9.99E+8 -> 9.99E+8
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1141 emax276 toSci 9.99E+9 -> 9.99E+9
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1142 emax277 toSci 9.99E+10 -> 9.99E+10
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1143 emax278 toSci 9.99E+11 -> Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1144
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1145 maxexponent: 99
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1146 minexponent: -99
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1147 emax280 toSci 1E-120 -> 0E-107 Underflow Subnormal Inexact Rounded Clamped
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1148 emax281 toSci 1E-100 -> 1E-100 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1149 emax282 toSci 1E-99 -> 1E-99
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1150 emax283 toSci 1E-98 -> 1E-98
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1151 emax284 toSci 1E+98 -> 1E+98
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1152 emax285 toSci 1E+99 -> 1E+99
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1153 emax286 toSci 1E+100 -> Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1154
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1155 maxexponent: 999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1156 minexponent: -999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1157 emax291 toSci 1E-1000 -> 1E-1000 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1158 emax292 toSci 1E-999 -> 1E-999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1159 emax293 toSci 1E+999 -> 1E+999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1160 emax294 toSci 1E+1000 -> Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1161 maxexponent: 9999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1162 minexponent: -9999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1163 emax301 toSci 1E-10000 -> 1E-10000 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1164 emax302 toSci 1E-9999 -> 1E-9999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1165 emax303 toSci 1E+9999 -> 1E+9999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1166 emax304 toSci 1E+10000 -> Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1167 maxexponent: 99999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1168 minexponent: -99999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1169 emax311 toSci 1E-100000 -> 1E-100000 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1170 emax312 toSci 1E-99999 -> 1E-99999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1171 emax313 toSci 1E+99999 -> 1E+99999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1172 emax314 toSci 1E+100000 -> Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1173 maxexponent: 999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1174 minexponent: -999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1175 emax321 toSci 1E-1000000 -> 1E-1000000 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1176 emax322 toSci 1E-999999 -> 1E-999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1177 emax323 toSci 1E+999999 -> 1E+999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1178 emax324 toSci 1E+1000000 -> Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1179 maxexponent: 9999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1180 minexponent: -9999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1181 emax331 toSci 1E-10000000 -> 1E-10000000 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1182 emax332 toSci 1E-9999999 -> 1E-9999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1183 emax333 toSci 1E+9999999 -> 1E+9999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1184 emax334 toSci 1E+10000000 -> Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1185 maxexponent: 99999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1186 minexponent: -99999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1187 emax341 toSci 1E-100000000 -> 1E-100000000 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1188 emax342 toSci 1E-99999999 -> 1E-99999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1189 emax343 toSci 1E+99999999 -> 1E+99999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1190 emax344 toSci 1E+100000000 -> Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1191
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1192 maxexponent: 999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1193 minexponent: -999999999
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1194 emax347 toSci 1E-1000000008 -> 0E-1000000007 Underflow Subnormal Inexact Rounded Clamped
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1195 emax348 toSci 1E-1000000007 -> 1E-1000000007 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1196 emax349 toSci 1E-1000000000 -> 1E-1000000000 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1197 emax350 toSci 1E-999999999 -> 1E-999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1198 emax351 toSci 1E+999999999 -> 1E+999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1199 emax352 toSci 1E+1000000000 -> Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1200 emax353 toSci 1.000E-1000000000 -> 1.000E-1000000000 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1201 emax354 toSci 1.000E-999999999 -> 1.000E-999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1202 emax355 toSci 1.000E+999999999 -> 1.000E+999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1203 emax356 toSci 1.000E+1000000000 -> Infinity Overflow Inexact Rounded
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1204 emax357 toSci 1.001E-1000000008 -> 0E-1000000007 Underflow Subnormal Inexact Rounded Clamped
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1205 emax358 toSci 1.001E-1000000007 -> 1E-1000000007 Subnormal Inexact Rounded Underflow
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1206 emax359 toSci 1.001E-1000000000 -> 1.001E-1000000000 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1207 emax360 toSci 1.001E-999999999 -> 1.001E-999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1208 emax361 toSci 1.001E+999999999 -> 1.001E+999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1209 emax362 toSci 1.001E+1000000000 -> Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1210 emax363 toSci 9.000E-1000000000 -> 9.000E-1000000000 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1211 emax364 toSci 9.000E-999999999 -> 9.000E-999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1212 emax365 toSci 9.000E+999999999 -> 9.000E+999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1213 emax366 toSci 9.000E+1000000000 -> Infinity Overflow Inexact Rounded
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1214 emax367 toSci 9.999E-1000000009 -> 0E-1000000007 Underflow Subnormal Inexact Rounded Clamped
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1215 emax368 toSci 9.999E-1000000008 -> 1E-1000000007 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1216 emax369 toSci 9.999E-1000000007 -> 1.0E-1000000006 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1217 emax370 toSci 9.999E-1000000000 -> 9.999E-1000000000 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1218 emax371 toSci 9.999E-999999999 -> 9.999E-999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1219 emax372 toSci 9.999E+999999999 -> 9.999E+999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1220
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1221 emax373 toSci 9.999E+1000000000 -> Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1222 emax374 toSci -1E-1000000000 -> -1E-1000000000 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1223 emax375 toSci -1E-999999999 -> -1E-999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1224 emax376 toSci -1E+999999999 -> -1E+999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1225 emax377 toSci -1E+1000000000 -> -Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1226 emax378 toSci -1.000E-1000000000 -> -1.000E-1000000000 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1227 emax379 toSci -1.000E-999999999 -> -1.000E-999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1228 emax380 toSci -1.000E+999999999 -> -1.000E+999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1229 emax381 toSci -1.000E+1000000000 -> -Infinity Overflow Inexact Rounded
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1230 emax382 toSci -1.001E-1000000008 -> -0E-1000000007 Underflow Subnormal Inexact Rounded Clamped
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1231 emax383 toSci -1.001E-999999999 -> -1.001E-999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1232 emax384 toSci -1.001E+999999999 -> -1.001E+999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1233 emax385 toSci -1.001E+1000000000 -> -Infinity Overflow Inexact Rounded
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1234 emax386 toSci -9.000E-1000000123 -> -0E-1000000007 Underflow Subnormal Inexact Rounded Clamped
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1235 emax387 toSci -9.000E-999999999 -> -9.000E-999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1236 emax388 toSci -9.000E+999999999 -> -9.000E+999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1237 emax389 toSci -9.000E+1000000000 -> -Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1238 emax390 toSci -9.999E-1000000008 -> -1E-1000000007 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1239 emax391 toSci -9.999E-999999999 -> -9.999E-999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1240 emax392 toSci -9.999E+999999999 -> -9.999E+999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1241 emax393 toSci -9.999E+1000000000 -> -Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1242
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1243 -- Now check 854 rounding of subnormals and proper underflow to 0
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1244 precision: 5
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1245 maxExponent: 999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1246 minexponent: -999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1247 rounding: half_even
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1248
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1249 emax400 toSci 1.0000E-999 -> 1.0000E-999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1250 emax401 toSci 0.1E-999 -> 1E-1000 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1251 emax402 toSci 0.1000E-999 -> 1.000E-1000 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1252 emax403 toSci 0.0100E-999 -> 1.00E-1001 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1253 emax404 toSci 0.0010E-999 -> 1.0E-1002 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1254 emax405 toSci 0.0001E-999 -> 1E-1003 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1255 emax406 toSci 0.00010E-999 -> 1E-1003 Subnormal Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1256 emax407 toSci 0.00013E-999 -> 1E-1003 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1257 emax408 toSci 0.00015E-999 -> 2E-1003 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1258 emax409 toSci 0.00017E-999 -> 2E-1003 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1259 emax410 toSci 0.00023E-999 -> 2E-1003 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1260 emax411 toSci 0.00025E-999 -> 2E-1003 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1261 emax412 toSci 0.00027E-999 -> 3E-1003 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1262 emax413 toSci 0.000149E-999 -> 1E-1003 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1263 emax414 toSci 0.000150E-999 -> 2E-1003 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1264 emax415 toSci 0.000151E-999 -> 2E-1003 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1265 emax416 toSci 0.000249E-999 -> 2E-1003 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1266 emax417 toSci 0.000250E-999 -> 2E-1003 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1267 emax418 toSci 0.000251E-999 -> 3E-1003 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1268 emax419 toSci 0.00009E-999 -> 1E-1003 Underflow Subnormal Inexact Rounded
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1269 emax420 toSci 0.00005E-999 -> 0E-1003 Underflow Subnormal Inexact Rounded Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1270 emax421 toSci 0.00003E-999 -> 0E-1003 Underflow Subnormal Inexact Rounded Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1271 emax422 toSci 0.000009E-999 -> 0E-1003 Underflow Subnormal Inexact Rounded Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1272 emax423 toSci 0.000005E-999 -> 0E-1003 Underflow Subnormal Inexact Rounded Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1273 emax424 toSci 0.000003E-999 -> 0E-1003 Underflow Subnormal Inexact Rounded Clamped
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1274
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1275 emax425 toSci 0.001049E-999 -> 1.0E-1002 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1276 emax426 toSci 0.001050E-999 -> 1.0E-1002 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1277 emax427 toSci 0.001051E-999 -> 1.1E-1002 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1278 emax428 toSci 0.001149E-999 -> 1.1E-1002 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1279 emax429 toSci 0.001150E-999 -> 1.2E-1002 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1280 emax430 toSci 0.001151E-999 -> 1.2E-1002 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1281
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1282 emax432 toSci 0.010049E-999 -> 1.00E-1001 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1283 emax433 toSci 0.010050E-999 -> 1.00E-1001 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1284 emax434 toSci 0.010051E-999 -> 1.01E-1001 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1285 emax435 toSci 0.010149E-999 -> 1.01E-1001 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1286 emax436 toSci 0.010150E-999 -> 1.02E-1001 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1287 emax437 toSci 0.010151E-999 -> 1.02E-1001 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1288
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1289 emax440 toSci 0.10103E-999 -> 1.010E-1000 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1290 emax441 toSci 0.10105E-999 -> 1.010E-1000 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1291 emax442 toSci 0.10107E-999 -> 1.011E-1000 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1292 emax443 toSci 0.10113E-999 -> 1.011E-1000 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1293 emax444 toSci 0.10115E-999 -> 1.012E-1000 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1294 emax445 toSci 0.10117E-999 -> 1.012E-1000 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1295
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1296 emax450 toSci 1.10730E-1000 -> 1.107E-1000 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1297 emax451 toSci 1.10750E-1000 -> 1.108E-1000 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1298 emax452 toSci 1.10770E-1000 -> 1.108E-1000 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1299 emax453 toSci 1.10830E-1000 -> 1.108E-1000 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1300 emax454 toSci 1.10850E-1000 -> 1.108E-1000 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1301 emax455 toSci 1.10870E-1000 -> 1.109E-1000 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1302
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1303 -- make sure sign OK
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1304 emax456 toSci -0.10103E-999 -> -1.010E-1000 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1305 emax457 toSci -0.10105E-999 -> -1.010E-1000 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1306 emax458 toSci -0.10107E-999 -> -1.011E-1000 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1307 emax459 toSci -0.10113E-999 -> -1.011E-1000 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1308 emax460 toSci -0.10115E-999 -> -1.012E-1000 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1309 emax461 toSci -0.10117E-999 -> -1.012E-1000 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1310
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1311 -- '999s' cases
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1312 emax464 toSci 999999E-999 -> 1.0000E-993 Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1313 emax465 toSci 99999.0E-999 -> 9.9999E-995 Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1314 emax466 toSci 99999.E-999 -> 9.9999E-995
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1315 emax467 toSci 9999.9E-999 -> 9.9999E-996
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1316 emax468 toSci 999.99E-999 -> 9.9999E-997
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1317 emax469 toSci 99.999E-999 -> 9.9999E-998
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1318 emax470 toSci 9.9999E-999 -> 9.9999E-999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1319 emax471 toSci 0.99999E-999 -> 1.0000E-999 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1320 emax472 toSci 0.099999E-999 -> 1.000E-1000 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1321 emax473 toSci 0.0099999E-999 -> 1.00E-1001 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1322 emax474 toSci 0.00099999E-999 -> 1.0E-1002 Underflow Subnormal Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1323 emax475 toSci 0.000099999E-999 -> 1E-1003 Underflow Subnormal Inexact Rounded
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1324 emax476 toSci 0.0000099999E-999 -> 0E-1003 Underflow Subnormal Inexact Rounded Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1325 emax477 toSci 0.00000099999E-999 -> 0E-1003 Underflow Subnormal Inexact Rounded Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1326 emax478 toSci 0.000000099999E-999 -> 0E-1003 Underflow Subnormal Inexact Rounded Clamped
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1327
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1328 -- Exponents with insignificant leading zeros
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1329 precision: 16
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1330 maxExponent: 999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1331 minexponent: -999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1332 basx1001 toSci 1e999999999 -> 1E+999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1333 basx1002 toSci 1e0999999999 -> 1E+999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1334 basx1003 toSci 1e00999999999 -> 1E+999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1335 basx1004 toSci 1e000999999999 -> 1E+999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1336 basx1005 toSci 1e000000000000999999999 -> 1E+999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1337 basx1006 toSci 1e000000000001000000007 -> Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1338 basx1007 toSci 1e-999999999 -> 1E-999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1339 basx1008 toSci 1e-0999999999 -> 1E-999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1340 basx1009 toSci 1e-00999999999 -> 1E-999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1341 basx1010 toSci 1e-000999999999 -> 1E-999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1342 basx1011 toSci 1e-000000000000999999999 -> 1E-999999999
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1343 basx1012 toSci 1e-000000000001000000007 -> 1E-1000000007 Subnormal
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1344
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1345 -- Edge cases for int32 exponents...
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1346 basx1021 tosci 1e+2147483649 -> Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1347 basx1022 tosci 1e+2147483648 -> Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1348 basx1023 tosci 1e+2147483647 -> Infinity Overflow Inexact Rounded
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1349 basx1024 tosci 1e-2147483647 -> 0E-1000000014 Underflow Subnormal Inexact Rounded Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1350 basx1025 tosci 1e-2147483648 -> 0E-1000000014 Underflow Subnormal Inexact Rounded Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1351 basx1026 tosci 1e-2147483649 -> 0E-1000000014 Underflow Subnormal Inexact Rounded Clamped
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1352 -- same unbalanced
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1353 precision: 7
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1354 maxExponent: 96
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1355 minexponent: -95
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1356 basx1031 tosci 1e+2147483649 -> Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1357 basx1032 tosci 1e+2147483648 -> Infinity Overflow Inexact Rounded
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1358 basx1033 tosci 1e+2147483647 -> Infinity Overflow Inexact Rounded
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1359 basx1034 tosci 1e-2147483647 -> 0E-101 Underflow Subnormal Inexact Rounded Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1360 basx1035 tosci 1e-2147483648 -> 0E-101 Underflow Subnormal Inexact Rounded Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1361 basx1036 tosci 1e-2147483649 -> 0E-101 Underflow Subnormal Inexact Rounded Clamped
32451
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1362
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1363 -- check for double-rounded subnormals
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1364 precision: 5
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1365 maxexponent: 79
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1366 minexponent: -79
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1367 basx1041 toSci 1.52444E-80 -> 1.524E-80 Inexact Rounded Subnormal Underflow
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1368 basx1042 toSci 1.52445E-80 -> 1.524E-80 Inexact Rounded Subnormal Underflow
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1369 basx1043 toSci 1.52446E-80 -> 1.524E-80 Inexact Rounded Subnormal Underflow
d2c1c7ae7cf4 Move Decimal from the sandbox into production.
Raymond Hettinger <python@rcn.com>
parents:
diff changeset
1370
44600
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1371 -- clamped zeros [see also clamp.decTest]
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1372 precision: 34
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1373 maxExponent: 6144
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1374 minExponent: -6143
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1375
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1376 basx1061 apply 0e+10000 -> 0E+6144 Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1377 basx1062 apply 0e-10000 -> 0E-6176 Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1378 basx1063 apply -0e+10000 -> -0E+6144 Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1379 basx1064 apply -0e-10000 -> -0E-6176 Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1380
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1381 precision: 16
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1382 maxExponent: 384
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1383 minExponent: -383
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1384
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1385 basx1065 apply 0e+10000 -> 0E+384 Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1386 basx1066 apply 0e-10000 -> 0E-398 Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1387 basx1067 apply -0e+10000 -> -0E+384 Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1388 basx1068 apply -0e-10000 -> -0E-398 Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1389
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1390 -- same with IEEE clamping
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1391 clamp: 1
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1392
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1393 precision: 34
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1394 maxExponent: 6144
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1395 minExponent: -6143
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1396
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1397 basx1071 apply 0e+10000 -> 0E+6111 Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1398 basx1072 apply 0e-10000 -> 0E-6176 Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1399 basx1073 apply -0e+10000 -> -0E+6111 Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1400 basx1074 apply -0e-10000 -> -0E-6176 Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1401
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1402 precision: 16
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1403 maxExponent: 384
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1404 minExponent: -383
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1405
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1406 basx1075 apply 0e+10000 -> 0E+369 Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1407 basx1076 apply 0e-10000 -> 0E-398 Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1408 basx1077 apply -0e+10000 -> -0E+369 Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1409 basx1078 apply -0e-10000 -> -0E-398 Clamped
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1410
9a60bd8f00d6 Decimal module and test cases were updated to their state of
Facundo Batista <facundobatista@gmail.com>
parents: 33158
diff changeset
1411