forked from RustPython/RustPython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase.decTest
More file actions
1411 lines (1324 loc) · 59.9 KB
/
base.decTest
File metadata and controls
1411 lines (1324 loc) · 59.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
------------------------------------------------------------------------
-- base.decTest -- base decimal <--> string conversions --
-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- these testcases. --
-- --
-- These testcases are experimental ('beta' versions), and they --
-- may contain errors. They are offered on an as-is basis. In --
-- particular, achieving the same results as the tests here is not --
-- a guarantee that an implementation complies with any Standard --
-- or specification. The tests are not exhaustive. --
-- --
-- Please send comments, suggestions, and corrections to the author: --
-- Mike Cowlishaw, IBM Fellow --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
version: 2.59
extended: 1
-- This file tests base conversions from string to a decimal number
-- and back to a string (in either Scientific or Engineering form)
-- Note that unlike other operations the operand is subject to rounding
-- to conform to emax and precision settings (that is, numbers will
-- conform to rules and exponent will be in permitted range).
precision: 16
rounding: half_up
maxExponent: 384
minExponent: -383
basx001 toSci 0 -> 0
basx002 toSci 1 -> 1
basx003 toSci 1.0 -> 1.0
basx004 toSci 1.00 -> 1.00
basx005 toSci 10 -> 10
basx006 toSci 1000 -> 1000
basx007 toSci 10.0 -> 10.0
basx008 toSci 10.1 -> 10.1
basx009 toSci 10.4 -> 10.4
basx010 toSci 10.5 -> 10.5
basx011 toSci 10.6 -> 10.6
basx012 toSci 10.9 -> 10.9
basx013 toSci 11.0 -> 11.0
basx014 toSci 1.234 -> 1.234
basx015 toSci 0.123 -> 0.123
basx016 toSci 0.012 -> 0.012
basx017 toSci -0 -> -0
basx018 toSci -0.0 -> -0.0
basx019 toSci -00.00 -> -0.00
basx021 toSci -1 -> -1
basx022 toSci -1.0 -> -1.0
basx023 toSci -0.1 -> -0.1
basx024 toSci -9.1 -> -9.1
basx025 toSci -9.11 -> -9.11
basx026 toSci -9.119 -> -9.119
basx027 toSci -9.999 -> -9.999
basx030 toSci '123456789.123456' -> '123456789.123456'
basx031 toSci '123456789.000000' -> '123456789.000000'
basx032 toSci '123456789123456' -> '123456789123456'
basx033 toSci '0.0000123456789' -> '0.0000123456789'
basx034 toSci '0.00000123456789' -> '0.00000123456789'
basx035 toSci '0.000000123456789' -> '1.23456789E-7'
basx036 toSci '0.0000000123456789' -> '1.23456789E-8'
basx037 toSci '0.123456789012344' -> '0.123456789012344'
basx038 toSci '0.123456789012345' -> '0.123456789012345'
-- String [many more examples are implicitly tested elsewhere]
-- strings without E cannot generate E in result
basx040 toSci "12" -> '12'
basx041 toSci "-76" -> '-76'
basx042 toSci "12.76" -> '12.76'
basx043 toSci "+12.76" -> '12.76'
basx044 toSci "012.76" -> '12.76'
basx045 toSci "+0.003" -> '0.003'
basx046 toSci "17." -> '17'
basx047 toSci ".5" -> '0.5'
basx048 toSci "044" -> '44'
basx049 toSci "0044" -> '44'
basx050 toSci "0.0005" -> '0.0005'
basx051 toSci "00.00005" -> '0.00005'
basx052 toSci "0.000005" -> '0.000005'
basx053 toSci "0.0000050" -> '0.0000050'
basx054 toSci "0.0000005" -> '5E-7'
basx055 toSci "0.00000005" -> '5E-8'
basx056 toSci "12345678.543210" -> '12345678.543210'
basx057 toSci "2345678.543210" -> '2345678.543210'
basx058 toSci "345678.543210" -> '345678.543210'
basx059 toSci "0345678.54321" -> '345678.54321'
basx060 toSci "345678.5432" -> '345678.5432'
basx061 toSci "+345678.5432" -> '345678.5432'
basx062 toSci "+0345678.5432" -> '345678.5432'
basx063 toSci "+00345678.5432" -> '345678.5432'
basx064 toSci "-345678.5432" -> '-345678.5432'
basx065 toSci "-0345678.5432" -> '-345678.5432'
basx066 toSci "-00345678.5432" -> '-345678.5432'
-- examples
basx067 toSci "5E-6" -> '0.000005'
basx068 toSci "50E-7" -> '0.0000050'
basx069 toSci "5E-7" -> '5E-7'
-- [No exotics as no Unicode]
-- rounded with dots in all (including edge) places
basx071 toSci .1234567890123456123 -> 0.1234567890123456 Inexact Rounded
basx072 toSci 1.234567890123456123 -> 1.234567890123456 Inexact Rounded
basx073 toSci 12.34567890123456123 -> 12.34567890123456 Inexact Rounded
basx074 toSci 123.4567890123456123 -> 123.4567890123456 Inexact Rounded
basx075 toSci 1234.567890123456123 -> 1234.567890123456 Inexact Rounded
basx076 toSci 12345.67890123456123 -> 12345.67890123456 Inexact Rounded
basx077 toSci 123456.7890123456123 -> 123456.7890123456 Inexact Rounded
basx078 toSci 1234567.890123456123 -> 1234567.890123456 Inexact Rounded
basx079 toSci 12345678.90123456123 -> 12345678.90123456 Inexact Rounded
basx080 toSci 123456789.0123456123 -> 123456789.0123456 Inexact Rounded
basx081 toSci 1234567890.123456123 -> 1234567890.123456 Inexact Rounded
basx082 toSci 12345678901.23456123 -> 12345678901.23456 Inexact Rounded
basx083 toSci 123456789012.3456123 -> 123456789012.3456 Inexact Rounded
basx084 toSci 1234567890123.456123 -> 1234567890123.456 Inexact Rounded
basx085 toSci 12345678901234.56123 -> 12345678901234.56 Inexact Rounded
basx086 toSci 123456789012345.6123 -> 123456789012345.6 Inexact Rounded
basx087 toSci 1234567890123456.123 -> 1234567890123456 Inexact Rounded
basx088 toSci 12345678901234561.23 -> 1.234567890123456E+16 Inexact Rounded
basx089 toSci 123456789012345612.3 -> 1.234567890123456E+17 Inexact Rounded
basx090 toSci 1234567890123456123. -> 1.234567890123456E+18 Inexact Rounded
-- Numbers with E
basx130 toSci "0.000E-1" -> '0.0000'
basx131 toSci "0.000E-2" -> '0.00000'
basx132 toSci "0.000E-3" -> '0.000000'
basx133 toSci "0.000E-4" -> '0E-7'
basx134 toSci "0.00E-2" -> '0.0000'
basx135 toSci "0.00E-3" -> '0.00000'
basx136 toSci "0.00E-4" -> '0.000000'
basx137 toSci "0.00E-5" -> '0E-7'
basx138 toSci "+0E+9" -> '0E+9'
basx139 toSci "-0E+9" -> '-0E+9'
basx140 toSci "1E+9" -> '1E+9'
basx141 toSci "1e+09" -> '1E+9'
basx142 toSci "1E+90" -> '1E+90'
basx143 toSci "+1E+009" -> '1E+9'
basx144 toSci "0E+9" -> '0E+9'
basx145 toSci "1E+9" -> '1E+9'
basx146 toSci "1E+09" -> '1E+9'
basx147 toSci "1e+90" -> '1E+90'
basx148 toSci "1E+009" -> '1E+9'
basx149 toSci "000E+9" -> '0E+9'
basx150 toSci "1E9" -> '1E+9'
basx151 toSci "1e09" -> '1E+9'
basx152 toSci "1E90" -> '1E+90'
basx153 toSci "1E009" -> '1E+9'
basx154 toSci "0E9" -> '0E+9'
basx155 toSci "0.000e+0" -> '0.000'
basx156 toSci "0.000E-1" -> '0.0000'
basx157 toSci "4E+9" -> '4E+9'
basx158 toSci "44E+9" -> '4.4E+10'
basx159 toSci "0.73e-7" -> '7.3E-8'
basx160 toSci "00E+9" -> '0E+9'
basx161 toSci "00E-9" -> '0E-9'
basx162 toSci "10E+9" -> '1.0E+10'
basx163 toSci "10E+09" -> '1.0E+10'
basx164 toSci "10e+90" -> '1.0E+91'
basx165 toSci "10E+009" -> '1.0E+10'
basx166 toSci "100e+9" -> '1.00E+11'
basx167 toSci "100e+09" -> '1.00E+11'
basx168 toSci "100E+90" -> '1.00E+92'
basx169 toSci "100e+009" -> '1.00E+11'
basx170 toSci "1.265" -> '1.265'
basx171 toSci "1.265E-20" -> '1.265E-20'
basx172 toSci "1.265E-8" -> '1.265E-8'
basx173 toSci "1.265E-4" -> '0.0001265'
basx174 toSci "1.265E-3" -> '0.001265'
basx175 toSci "1.265E-2" -> '0.01265'
basx176 toSci "1.265E-1" -> '0.1265'
basx177 toSci "1.265E-0" -> '1.265'
basx178 toSci "1.265E+1" -> '12.65'
basx179 toSci "1.265E+2" -> '126.5'
basx180 toSci "1.265E+3" -> '1265'
basx181 toSci "1.265E+4" -> '1.265E+4'
basx182 toSci "1.265E+8" -> '1.265E+8'
basx183 toSci "1.265E+20" -> '1.265E+20'
basx190 toSci "12.65" -> '12.65'
basx191 toSci "12.65E-20" -> '1.265E-19'
basx192 toSci "12.65E-8" -> '1.265E-7'
basx193 toSci "12.65E-4" -> '0.001265'
basx194 toSci "12.65E-3" -> '0.01265'
basx195 toSci "12.65E-2" -> '0.1265'
basx196 toSci "12.65E-1" -> '1.265'
basx197 toSci "12.65E-0" -> '12.65'
basx198 toSci "12.65E+1" -> '126.5'
basx199 toSci "12.65E+2" -> '1265'
basx200 toSci "12.65E+3" -> '1.265E+4'
basx201 toSci "12.65E+4" -> '1.265E+5'
basx202 toSci "12.65E+8" -> '1.265E+9'
basx203 toSci "12.65E+20" -> '1.265E+21'
basx210 toSci "126.5" -> '126.5'
basx211 toSci "126.5E-20" -> '1.265E-18'
basx212 toSci "126.5E-8" -> '0.000001265'
basx213 toSci "126.5E-4" -> '0.01265'
basx214 toSci "126.5E-3" -> '0.1265'
basx215 toSci "126.5E-2" -> '1.265'
basx216 toSci "126.5E-1" -> '12.65'
basx217 toSci "126.5E-0" -> '126.5'
basx218 toSci "126.5E+1" -> '1265'
basx219 toSci "126.5E+2" -> '1.265E+4'
basx220 toSci "126.5E+3" -> '1.265E+5'
basx221 toSci "126.5E+4" -> '1.265E+6'
basx222 toSci "126.5E+8" -> '1.265E+10'
basx223 toSci "126.5E+20" -> '1.265E+22'
basx230 toSci "1265" -> '1265'
basx231 toSci "1265E-20" -> '1.265E-17'
basx232 toSci "1265E-8" -> '0.00001265'
basx233 toSci "1265E-4" -> '0.1265'
basx234 toSci "1265E-3" -> '1.265'
basx235 toSci "1265E-2" -> '12.65'
basx236 toSci "1265E-1" -> '126.5'
basx237 toSci "1265E-0" -> '1265'
basx238 toSci "1265E+1" -> '1.265E+4'
basx239 toSci "1265E+2" -> '1.265E+5'
basx240 toSci "1265E+3" -> '1.265E+6'
basx241 toSci "1265E+4" -> '1.265E+7'
basx242 toSci "1265E+8" -> '1.265E+11'
basx243 toSci "1265E+20" -> '1.265E+23'
basx250 toSci "0.1265" -> '0.1265'
basx251 toSci "0.1265E-20" -> '1.265E-21'
basx252 toSci "0.1265E-8" -> '1.265E-9'
basx253 toSci "0.1265E-4" -> '0.00001265'
basx254 toSci "0.1265E-3" -> '0.0001265'
basx255 toSci "0.1265E-2" -> '0.001265'
basx256 toSci "0.1265E-1" -> '0.01265'
basx257 toSci "0.1265E-0" -> '0.1265'
basx258 toSci "0.1265E+1" -> '1.265'
basx259 toSci "0.1265E+2" -> '12.65'
basx260 toSci "0.1265E+3" -> '126.5'
basx261 toSci "0.1265E+4" -> '1265'
basx262 toSci "0.1265E+8" -> '1.265E+7'
basx263 toSci "0.1265E+20" -> '1.265E+19'
-- some more negative zeros [systematic tests below]
basx290 toSci "-0.000E-1" -> '-0.0000'
basx291 toSci "-0.000E-2" -> '-0.00000'
basx292 toSci "-0.000E-3" -> '-0.000000'
basx293 toSci "-0.000E-4" -> '-0E-7'
basx294 toSci "-0.00E-2" -> '-0.0000'
basx295 toSci "-0.00E-3" -> '-0.00000'
basx296 toSci "-0.0E-2" -> '-0.000'
basx297 toSci "-0.0E-3" -> '-0.0000'
basx298 toSci "-0E-2" -> '-0.00'
basx299 toSci "-0E-3" -> '-0.000'
-- Engineering notation tests
basx301 toSci 10e12 -> 1.0E+13
basx302 toEng 10e12 -> 10E+12
basx303 toSci 10e11 -> 1.0E+12
basx304 toEng 10e11 -> 1.0E+12
basx305 toSci 10e10 -> 1.0E+11
basx306 toEng 10e10 -> 100E+9
basx307 toSci 10e9 -> 1.0E+10
basx308 toEng 10e9 -> 10E+9
basx309 toSci 10e8 -> 1.0E+9
basx310 toEng 10e8 -> 1.0E+9
basx311 toSci 10e7 -> 1.0E+8
basx312 toEng 10e7 -> 100E+6
basx313 toSci 10e6 -> 1.0E+7
basx314 toEng 10e6 -> 10E+6
basx315 toSci 10e5 -> 1.0E+6
basx316 toEng 10e5 -> 1.0E+6
basx317 toSci 10e4 -> 1.0E+5
basx318 toEng 10e4 -> 100E+3
basx319 toSci 10e3 -> 1.0E+4
basx320 toEng 10e3 -> 10E+3
basx321 toSci 10e2 -> 1.0E+3
basx322 toEng 10e2 -> 1.0E+3
basx323 toSci 10e1 -> 1.0E+2
basx324 toEng 10e1 -> 100
basx325 toSci 10e0 -> 10
basx326 toEng 10e0 -> 10
basx327 toSci 10e-1 -> 1.0
basx328 toEng 10e-1 -> 1.0
basx329 toSci 10e-2 -> 0.10
basx330 toEng 10e-2 -> 0.10
basx331 toSci 10e-3 -> 0.010
basx332 toEng 10e-3 -> 0.010
basx333 toSci 10e-4 -> 0.0010
basx334 toEng 10e-4 -> 0.0010
basx335 toSci 10e-5 -> 0.00010
basx336 toEng 10e-5 -> 0.00010
basx337 toSci 10e-6 -> 0.000010
basx338 toEng 10e-6 -> 0.000010
basx339 toSci 10e-7 -> 0.0000010
basx340 toEng 10e-7 -> 0.0000010
basx341 toSci 10e-8 -> 1.0E-7
basx342 toEng 10e-8 -> 100E-9
basx343 toSci 10e-9 -> 1.0E-8
basx344 toEng 10e-9 -> 10E-9
basx345 toSci 10e-10 -> 1.0E-9
basx346 toEng 10e-10 -> 1.0E-9
basx347 toSci 10e-11 -> 1.0E-10
basx348 toEng 10e-11 -> 100E-12
basx349 toSci 10e-12 -> 1.0E-11
basx350 toEng 10e-12 -> 10E-12
basx351 toSci 10e-13 -> 1.0E-12
basx352 toEng 10e-13 -> 1.0E-12
basx361 toSci 7E12 -> 7E+12
basx362 toEng 7E12 -> 7E+12
basx363 toSci 7E11 -> 7E+11
basx364 toEng 7E11 -> 700E+9
basx365 toSci 7E10 -> 7E+10
basx366 toEng 7E10 -> 70E+9
basx367 toSci 7E9 -> 7E+9
basx368 toEng 7E9 -> 7E+9
basx369 toSci 7E8 -> 7E+8
basx370 toEng 7E8 -> 700E+6
basx371 toSci 7E7 -> 7E+7
basx372 toEng 7E7 -> 70E+6
basx373 toSci 7E6 -> 7E+6
basx374 toEng 7E6 -> 7E+6
basx375 toSci 7E5 -> 7E+5
basx376 toEng 7E5 -> 700E+3
basx377 toSci 7E4 -> 7E+4
basx378 toEng 7E4 -> 70E+3
basx379 toSci 7E3 -> 7E+3
basx380 toEng 7E3 -> 7E+3
basx381 toSci 7E2 -> 7E+2
basx382 toEng 7E2 -> 700
basx383 toSci 7E1 -> 7E+1
basx384 toEng 7E1 -> 70
basx385 toSci 7E0 -> 7
basx386 toEng 7E0 -> 7
basx387 toSci 7E-1 -> 0.7
basx388 toEng 7E-1 -> 0.7
basx389 toSci 7E-2 -> 0.07
basx390 toEng 7E-2 -> 0.07
basx391 toSci 7E-3 -> 0.007
basx392 toEng 7E-3 -> 0.007
basx393 toSci 7E-4 -> 0.0007
basx394 toEng 7E-4 -> 0.0007
basx395 toSci 7E-5 -> 0.00007
basx396 toEng 7E-5 -> 0.00007
basx397 toSci 7E-6 -> 0.000007
basx398 toEng 7E-6 -> 0.000007
basx399 toSci 7E-7 -> 7E-7
basx400 toEng 7E-7 -> 700E-9
basx401 toSci 7E-8 -> 7E-8
basx402 toEng 7E-8 -> 70E-9
basx403 toSci 7E-9 -> 7E-9
basx404 toEng 7E-9 -> 7E-9
basx405 toSci 7E-10 -> 7E-10
basx406 toEng 7E-10 -> 700E-12
basx407 toSci 7E-11 -> 7E-11
basx408 toEng 7E-11 -> 70E-12
basx409 toSci 7E-12 -> 7E-12
basx410 toEng 7E-12 -> 7E-12
basx411 toSci 7E-13 -> 7E-13
basx412 toEng 7E-13 -> 700E-15
-- Exacts remain exact up to precision ..
precision: 9
basx420 toSci 100 -> 100
basx421 toEng 100 -> 100
basx422 toSci 1000 -> 1000
basx423 toEng 1000 -> 1000
basx424 toSci 999.9 -> 999.9
basx425 toEng 999.9 -> 999.9
basx426 toSci 1000.0 -> 1000.0
basx427 toEng 1000.0 -> 1000.0
basx428 toSci 1000.1 -> 1000.1
basx429 toEng 1000.1 -> 1000.1
basx430 toSci 10000 -> 10000
basx431 toEng 10000 -> 10000
basx432 toSci 100000 -> 100000
basx433 toEng 100000 -> 100000
basx434 toSci 1000000 -> 1000000
basx435 toEng 1000000 -> 1000000
basx436 toSci 10000000 -> 10000000
basx437 toEng 10000000 -> 10000000
basx438 toSci 100000000 -> 100000000
basx439 toEng 100000000 -> 100000000
basx440 toSci 1000000000 -> 1.00000000E+9 Rounded
basx441 toEng 1000000000 -> 1.00000000E+9 Rounded
basx442 toSci 1000000000 -> 1.00000000E+9 Rounded
basx443 toEng 1000000000 -> 1.00000000E+9 Rounded
basx444 toSci 1000000003 -> 1.00000000E+9 Rounded Inexact
basx445 toEng 1000000003 -> 1.00000000E+9 Rounded Inexact
basx446 toSci 1000000005 -> 1.00000001E+9 Rounded Inexact
basx447 toEng 1000000005 -> 1.00000001E+9 Rounded Inexact
basx448 toSci 10000000050 -> 1.00000001E+10 Rounded Inexact
basx449 toEng 10000000050 -> 10.0000001E+9 Rounded Inexact
basx450 toSci 1000000009 -> 1.00000001E+9 Rounded Inexact
basx451 toEng 1000000009 -> 1.00000001E+9 Rounded Inexact
basx452 toSci 10000000000 -> 1.00000000E+10 Rounded
basx453 toEng 10000000000 -> 10.0000000E+9 Rounded
basx454 toSci 10000000003 -> 1.00000000E+10 Rounded Inexact
basx455 toEng 10000000003 -> 10.0000000E+9 Rounded Inexact
basx456 toSci 10000000005 -> 1.00000000E+10 Rounded Inexact
basx457 toEng 10000000005 -> 10.0000000E+9 Rounded Inexact
basx458 toSci 10000000009 -> 1.00000000E+10 Rounded Inexact
basx459 toEng 10000000009 -> 10.0000000E+9 Rounded Inexact
basx460 toSci 100000000000 -> 1.00000000E+11 Rounded
basx461 toEng 100000000000 -> 100.000000E+9 Rounded
basx462 toSci 100000000300 -> 1.00000000E+11 Rounded Inexact
basx463 toEng 100000000300 -> 100.000000E+9 Rounded Inexact
basx464 toSci 100000000500 -> 1.00000001E+11 Rounded Inexact
basx465 toEng 100000000500 -> 100.000001E+9 Rounded Inexact
basx466 toSci 100000000900 -> 1.00000001E+11 Rounded Inexact
basx467 toEng 100000000900 -> 100.000001E+9 Rounded Inexact
basx468 toSci 1000000000000 -> 1.00000000E+12 Rounded
basx469 toEng 1000000000000 -> 1.00000000E+12 Rounded
basx470 toSci 1000000003000 -> 1.00000000E+12 Rounded Inexact
basx471 toEng 1000000003000 -> 1.00000000E+12 Rounded Inexact
basx472 toSci 1000000005000 -> 1.00000001E+12 Rounded Inexact
basx473 toEng 1000000005000 -> 1.00000001E+12 Rounded Inexact
basx474 toSci 1000000009000 -> 1.00000001E+12 Rounded Inexact
basx475 toEng 1000000009000 -> 1.00000001E+12 Rounded Inexact
-- all-nines rounding
precision: 9
rounding: half_up
basx270 toSci 999999999 -> 999999999
basx271 toSci 9999999990 -> 9.99999999E+9 Rounded
basx272 toSci 9999999991 -> 9.99999999E+9 Rounded Inexact
basx273 toSci 9999999992 -> 9.99999999E+9 Rounded Inexact
basx274 toSci 9999999993 -> 9.99999999E+9 Rounded Inexact
basx275 toSci 9999999994 -> 9.99999999E+9 Rounded Inexact
basx276 toSci 9999999995 -> 1.00000000E+10 Rounded Inexact
basx277 toSci 9999999996 -> 1.00000000E+10 Rounded Inexact
basx278 toSci 9999999997 -> 1.00000000E+10 Rounded Inexact
basx279 toSci 9999999998 -> 1.00000000E+10 Rounded Inexact
basx280 toSci 9999999999 -> 1.00000000E+10 Rounded Inexact
basx281 toSci 9999999999999999 -> 1.00000000E+16 Rounded Inexact
-- check rounding modes heeded
precision: 5
rounding: ceiling
bsrx401 toSci 1.23450 -> 1.2345 Rounded
bsrx402 toSci 1.234549 -> 1.2346 Rounded Inexact
bsrx403 toSci 1.234550 -> 1.2346 Rounded Inexact
bsrx404 toSci 1.234551 -> 1.2346 Rounded Inexact
rounding: up
bsrx405 toSci 1.23450 -> 1.2345 Rounded
bsrx406 toSci 1.234549 -> 1.2346 Rounded Inexact
bsrx407 toSci 1.234550 -> 1.2346 Rounded Inexact
bsrx408 toSci 1.234551 -> 1.2346 Rounded Inexact
rounding: floor
bsrx410 toSci 1.23450 -> 1.2345 Rounded
bsrx411 toSci 1.234549 -> 1.2345 Rounded Inexact
bsrx412 toSci 1.234550 -> 1.2345 Rounded Inexact
bsrx413 toSci 1.234551 -> 1.2345 Rounded Inexact
rounding: half_down
bsrx415 toSci 1.23450 -> 1.2345 Rounded
bsrx416 toSci 1.234549 -> 1.2345 Rounded Inexact
bsrx417 toSci 1.234550 -> 1.2345 Rounded Inexact
bsrx418 toSci 1.234650 -> 1.2346 Rounded Inexact
bsrx419 toSci 1.234551 -> 1.2346 Rounded Inexact
rounding: half_even
bsrx421 toSci 1.23450 -> 1.2345 Rounded
bsrx422 toSci 1.234549 -> 1.2345 Rounded Inexact
bsrx423 toSci 1.234550 -> 1.2346 Rounded Inexact
bsrx424 toSci 1.234650 -> 1.2346 Rounded Inexact
bsrx425 toSci 1.234551 -> 1.2346 Rounded Inexact
rounding: down
bsrx426 toSci 1.23450 -> 1.2345 Rounded
bsrx427 toSci 1.234549 -> 1.2345 Rounded Inexact
bsrx428 toSci 1.234550 -> 1.2345 Rounded Inexact
bsrx429 toSci 1.234551 -> 1.2345 Rounded Inexact
rounding: half_up
bsrx431 toSci 1.23450 -> 1.2345 Rounded
bsrx432 toSci 1.234549 -> 1.2345 Rounded Inexact
bsrx433 toSci 1.234550 -> 1.2346 Rounded Inexact
bsrx434 toSci 1.234650 -> 1.2347 Rounded Inexact
bsrx435 toSci 1.234551 -> 1.2346 Rounded Inexact
-- negatives
rounding: ceiling
bsrx501 toSci -1.23450 -> -1.2345 Rounded
bsrx502 toSci -1.234549 -> -1.2345 Rounded Inexact
bsrx503 toSci -1.234550 -> -1.2345 Rounded Inexact
bsrx504 toSci -1.234551 -> -1.2345 Rounded Inexact
rounding: up
bsrx505 toSci -1.23450 -> -1.2345 Rounded
bsrx506 toSci -1.234549 -> -1.2346 Rounded Inexact
bsrx507 toSci -1.234550 -> -1.2346 Rounded Inexact
bsrx508 toSci -1.234551 -> -1.2346 Rounded Inexact
rounding: floor
bsrx510 toSci -1.23450 -> -1.2345 Rounded
bsrx511 toSci -1.234549 -> -1.2346 Rounded Inexact
bsrx512 toSci -1.234550 -> -1.2346 Rounded Inexact
bsrx513 toSci -1.234551 -> -1.2346 Rounded Inexact
rounding: half_down
bsrx515 toSci -1.23450 -> -1.2345 Rounded
bsrx516 toSci -1.234549 -> -1.2345 Rounded Inexact
bsrx517 toSci -1.234550 -> -1.2345 Rounded Inexact
bsrx518 toSci -1.234650 -> -1.2346 Rounded Inexact
bsrx519 toSci -1.234551 -> -1.2346 Rounded Inexact
rounding: half_even
bsrx521 toSci -1.23450 -> -1.2345 Rounded
bsrx522 toSci -1.234549 -> -1.2345 Rounded Inexact
bsrx523 toSci -1.234550 -> -1.2346 Rounded Inexact
bsrx524 toSci -1.234650 -> -1.2346 Rounded Inexact
bsrx525 toSci -1.234551 -> -1.2346 Rounded Inexact
rounding: down
bsrx526 toSci -1.23450 -> -1.2345 Rounded
bsrx527 toSci -1.234549 -> -1.2345 Rounded Inexact
bsrx528 toSci -1.234550 -> -1.2345 Rounded Inexact
bsrx529 toSci -1.234551 -> -1.2345 Rounded Inexact
rounding: half_up
bsrx531 toSci -1.23450 -> -1.2345 Rounded
bsrx532 toSci -1.234549 -> -1.2345 Rounded Inexact
bsrx533 toSci -1.234550 -> -1.2346 Rounded Inexact
bsrx534 toSci -1.234650 -> -1.2347 Rounded Inexact
bsrx535 toSci -1.234551 -> -1.2346 Rounded Inexact
-- a few larger exponents
maxExponent: 999999999
minExponent: -999999999
basx480 toSci "0.09e999" -> '9E+997'
basx481 toSci "0.9e999" -> '9E+998'
basx482 toSci "9e999" -> '9E+999'
basx483 toSci "9.9e999" -> '9.9E+999'
basx484 toSci "9.99e999" -> '9.99E+999'
basx485 toSci "9.99e-999" -> '9.99E-999'
basx486 toSci "9.9e-999" -> '9.9E-999'
basx487 toSci "9e-999" -> '9E-999'
basx489 toSci "99e-999" -> '9.9E-998'
basx490 toSci "999e-999" -> '9.99E-997'
basx491 toSci '0.9e-998' -> '9E-999'
basx492 toSci '0.09e-997' -> '9E-999'
basx493 toSci '0.1e1000' -> '1E+999'
basx494 toSci '10e-1000' -> '1.0E-999'
rounding: half_up
precision: 9
-- The 'baddies' tests from DiagBigDecimal, plus some new ones
basx500 toSci '1..2' -> NaN Conversion_syntax
basx501 toSci '.' -> NaN Conversion_syntax
basx502 toSci '..' -> NaN Conversion_syntax
basx503 toSci '++1' -> NaN Conversion_syntax
basx504 toSci '--1' -> NaN Conversion_syntax
basx505 toSci '-+1' -> NaN Conversion_syntax
basx506 toSci '+-1' -> NaN Conversion_syntax
basx507 toSci '12e' -> NaN Conversion_syntax
basx508 toSci '12e++' -> NaN Conversion_syntax
basx509 toSci '12f4' -> NaN Conversion_syntax
basx510 toSci ' +1' -> NaN Conversion_syntax
basx511 toSci '+ 1' -> NaN Conversion_syntax
basx512 toSci '12 ' -> NaN Conversion_syntax
basx513 toSci ' + 1' -> NaN Conversion_syntax
basx514 toSci ' - 1 ' -> NaN Conversion_syntax
basx515 toSci 'x' -> NaN Conversion_syntax
basx516 toSci '-1-' -> NaN Conversion_syntax
basx517 toSci '12-' -> NaN Conversion_syntax
basx518 toSci '3+' -> NaN Conversion_syntax
basx519 toSci '' -> NaN Conversion_syntax
basx520 toSci '1e-' -> NaN Conversion_syntax
basx521 toSci '7e99999a' -> NaN Conversion_syntax
basx522 toSci '7e123567890x' -> NaN Conversion_syntax
basx523 toSci '7e12356789012x' -> NaN Conversion_syntax
basx524 toSci '' -> NaN Conversion_syntax
basx525 toSci 'e100' -> NaN Conversion_syntax
basx526 toSci '\u0e5a' -> NaN Conversion_syntax
basx527 toSci '\u0b65' -> NaN Conversion_syntax
basx528 toSci '123,65' -> NaN Conversion_syntax
basx529 toSci '1.34.5' -> NaN Conversion_syntax
basx530 toSci '.123.5' -> NaN Conversion_syntax
basx531 toSci '01.35.' -> NaN Conversion_syntax
basx532 toSci '01.35-' -> NaN Conversion_syntax
basx533 toSci '0000..' -> NaN Conversion_syntax
basx534 toSci '.0000.' -> NaN Conversion_syntax
basx535 toSci '00..00' -> NaN Conversion_syntax
basx536 toSci '111e*123' -> NaN Conversion_syntax
basx537 toSci '111e123-' -> NaN Conversion_syntax
basx538 toSci '111e+12+' -> NaN Conversion_syntax
basx539 toSci '111e1-3-' -> NaN Conversion_syntax
basx540 toSci '111e1*23' -> NaN Conversion_syntax
basx541 toSci '111e1e+3' -> NaN Conversion_syntax
basx542 toSci '1e1.0' -> NaN Conversion_syntax
basx543 toSci '1e123e' -> NaN Conversion_syntax
basx544 toSci 'ten' -> NaN Conversion_syntax
basx545 toSci 'ONE' -> NaN Conversion_syntax
basx546 toSci '1e.1' -> NaN Conversion_syntax
basx547 toSci '1e1.' -> NaN Conversion_syntax
basx548 toSci '1ee' -> NaN Conversion_syntax
basx549 toSci 'e+1' -> NaN Conversion_syntax
basx550 toSci '1.23.4' -> NaN Conversion_syntax
basx551 toSci '1.2.1' -> NaN Conversion_syntax
basx552 toSci '1E+1.2' -> NaN Conversion_syntax
basx553 toSci '1E+1.2.3' -> NaN Conversion_syntax
basx554 toSci '1E++1' -> NaN Conversion_syntax
basx555 toSci '1E--1' -> NaN Conversion_syntax
basx556 toSci '1E+-1' -> NaN Conversion_syntax
basx557 toSci '1E-+1' -> NaN Conversion_syntax
basx558 toSci '1E''1' -> NaN Conversion_syntax
basx559 toSci "1E""1" -> NaN Conversion_syntax
basx560 toSci "1E""""" -> NaN Conversion_syntax
-- Near-specials
basx561 toSci "qNaN" -> NaN Conversion_syntax
basx562 toSci "NaNq" -> NaN Conversion_syntax
basx563 toSci "NaNs" -> NaN Conversion_syntax
basx564 toSci "Infi" -> NaN Conversion_syntax
basx565 toSci "Infin" -> NaN Conversion_syntax
basx566 toSci "Infini" -> NaN Conversion_syntax
basx567 toSci "Infinit" -> NaN Conversion_syntax
basx568 toSci "-Infinit" -> NaN Conversion_syntax
basx569 toSci "0Inf" -> NaN Conversion_syntax
basx570 toSci "9Inf" -> NaN Conversion_syntax
basx571 toSci "-0Inf" -> NaN Conversion_syntax
basx572 toSci "-9Inf" -> NaN Conversion_syntax
basx573 toSci "-sNa" -> NaN Conversion_syntax
basx574 toSci "xNaN" -> NaN Conversion_syntax
basx575 toSci "0sNaN" -> NaN Conversion_syntax
-- some baddies with dots and Es and dots and specials
basx576 toSci 'e+1' -> NaN Conversion_syntax
basx577 toSci '.e+1' -> NaN Conversion_syntax
basx578 toSci '+.e+1' -> NaN Conversion_syntax
basx579 toSci '-.e+' -> NaN Conversion_syntax
basx580 toSci '-.e' -> NaN Conversion_syntax
basx581 toSci 'E+1' -> NaN Conversion_syntax
basx582 toSci '.E+1' -> NaN Conversion_syntax
basx583 toSci '+.E+1' -> NaN Conversion_syntax
basx584 toSci '-.E+' -> NaN Conversion_syntax
basx585 toSci '-.E' -> NaN Conversion_syntax
basx586 toSci '.NaN' -> NaN Conversion_syntax
basx587 toSci '-.NaN' -> NaN Conversion_syntax
basx588 toSci '+.sNaN' -> NaN Conversion_syntax
basx589 toSci '+.Inf' -> NaN Conversion_syntax
basx590 toSci '.Infinity' -> NaN Conversion_syntax
-- Zeros
basx601 toSci 0.000000000 -> 0E-9
basx602 toSci 0.00000000 -> 0E-8
basx603 toSci 0.0000000 -> 0E-7
basx604 toSci 0.000000 -> 0.000000
basx605 toSci 0.00000 -> 0.00000
basx606 toSci 0.0000 -> 0.0000
basx607 toSci 0.000 -> 0.000
basx608 toSci 0.00 -> 0.00
basx609 toSci 0.0 -> 0.0
basx610 toSci .0 -> 0.0
basx611 toSci 0. -> 0
basx612 toSci -.0 -> -0.0
basx613 toSci -0. -> -0
basx614 toSci -0.0 -> -0.0
basx615 toSci -0.00 -> -0.00
basx616 toSci -0.000 -> -0.000
basx617 toSci -0.0000 -> -0.0000
basx618 toSci -0.00000 -> -0.00000
basx619 toSci -0.000000 -> -0.000000
basx620 toSci -0.0000000 -> -0E-7
basx621 toSci -0.00000000 -> -0E-8
basx622 toSci -0.000000000 -> -0E-9
basx630 toSci 0.00E+0 -> 0.00
basx631 toSci 0.00E+1 -> 0.0
basx632 toSci 0.00E+2 -> 0
basx633 toSci 0.00E+3 -> 0E+1
basx634 toSci 0.00E+4 -> 0E+2
basx635 toSci 0.00E+5 -> 0E+3
basx636 toSci 0.00E+6 -> 0E+4
basx637 toSci 0.00E+7 -> 0E+5
basx638 toSci 0.00E+8 -> 0E+6
basx639 toSci 0.00E+9 -> 0E+7
basx640 toSci 0.0E+0 -> 0.0
basx641 toSci 0.0E+1 -> 0
basx642 toSci 0.0E+2 -> 0E+1
basx643 toSci 0.0E+3 -> 0E+2
basx644 toSci 0.0E+4 -> 0E+3
basx645 toSci 0.0E+5 -> 0E+4
basx646 toSci 0.0E+6 -> 0E+5
basx647 toSci 0.0E+7 -> 0E+6
basx648 toSci 0.0E+8 -> 0E+7
basx649 toSci 0.0E+9 -> 0E+8
basx650 toSci 0E+0 -> 0
basx651 toSci 0E+1 -> 0E+1
basx652 toSci 0E+2 -> 0E+2
basx653 toSci 0E+3 -> 0E+3
basx654 toSci 0E+4 -> 0E+4
basx655 toSci 0E+5 -> 0E+5
basx656 toSci 0E+6 -> 0E+6
basx657 toSci 0E+7 -> 0E+7
basx658 toSci 0E+8 -> 0E+8
basx659 toSci 0E+9 -> 0E+9
basx660 toSci 0.0E-0 -> 0.0
basx661 toSci 0.0E-1 -> 0.00
basx662 toSci 0.0E-2 -> 0.000
basx663 toSci 0.0E-3 -> 0.0000
basx664 toSci 0.0E-4 -> 0.00000
basx665 toSci 0.0E-5 -> 0.000000
basx666 toSci 0.0E-6 -> 0E-7
basx667 toSci 0.0E-7 -> 0E-8
basx668 toSci 0.0E-8 -> 0E-9
basx669 toSci 0.0E-9 -> 0E-10
basx670 toSci 0.00E-0 -> 0.00
basx671 toSci 0.00E-1 -> 0.000
basx672 toSci 0.00E-2 -> 0.0000
basx673 toSci 0.00E-3 -> 0.00000
basx674 toSci 0.00E-4 -> 0.000000
basx675 toSci 0.00E-5 -> 0E-7
basx676 toSci 0.00E-6 -> 0E-8
basx677 toSci 0.00E-7 -> 0E-9
basx678 toSci 0.00E-8 -> 0E-10
basx679 toSci 0.00E-9 -> 0E-11
basx680 toSci 000000. -> 0
basx681 toSci 00000. -> 0
basx682 toSci 0000. -> 0
basx683 toSci 000. -> 0
basx684 toSci 00. -> 0
basx685 toSci 0. -> 0
basx686 toSci +00000. -> 0
basx687 toSci -00000. -> -0
basx688 toSci +0. -> 0
basx689 toSci -0. -> -0
-- Specials
precision: 4
basx700 toSci "NaN" -> NaN
basx701 toSci "nan" -> NaN
basx702 toSci "nAn" -> NaN
basx703 toSci "NAN" -> NaN
basx704 toSci "+NaN" -> NaN
basx705 toSci "+nan" -> NaN
basx706 toSci "+nAn" -> NaN
basx707 toSci "+NAN" -> NaN
basx708 toSci "-NaN" -> -NaN
basx709 toSci "-nan" -> -NaN
basx710 toSci "-nAn" -> -NaN
basx711 toSci "-NAN" -> -NaN
basx712 toSci 'NaN0' -> NaN
basx713 toSci 'NaN1' -> NaN1
basx714 toSci 'NaN12' -> NaN12
basx715 toSci 'NaN123' -> NaN123
basx716 toSci 'NaN1234' -> NaN1234
basx717 toSci 'NaN01' -> NaN1
basx718 toSci 'NaN012' -> NaN12
basx719 toSci 'NaN0123' -> NaN123
basx720 toSci 'NaN01234' -> NaN1234
basx721 toSci 'NaN001' -> NaN1
basx722 toSci 'NaN0012' -> NaN12
basx723 toSci 'NaN00123' -> NaN123
basx724 toSci 'NaN001234' -> NaN1234
basx725 toSci 'NaN12345' -> NaN Conversion_syntax
basx726 toSci 'NaN123e+1' -> NaN Conversion_syntax
basx727 toSci 'NaN12.45' -> NaN Conversion_syntax
basx728 toSci 'NaN-12' -> NaN Conversion_syntax
basx729 toSci 'NaN+12' -> NaN Conversion_syntax
basx730 toSci "sNaN" -> sNaN
basx731 toSci "snan" -> sNaN
basx732 toSci "SnAn" -> sNaN
basx733 toSci "SNAN" -> sNaN
basx734 toSci "+sNaN" -> sNaN
basx735 toSci "+snan" -> sNaN
basx736 toSci "+SnAn" -> sNaN
basx737 toSci "+SNAN" -> sNaN
basx738 toSci "-sNaN" -> -sNaN
basx739 toSci "-snan" -> -sNaN
basx740 toSci "-SnAn" -> -sNaN
basx741 toSci "-SNAN" -> -sNaN
basx742 toSci 'sNaN0000' -> sNaN
basx743 toSci 'sNaN7' -> sNaN7
basx744 toSci 'sNaN007234' -> sNaN7234
basx745 toSci 'sNaN72345' -> NaN Conversion_syntax
basx746 toSci 'sNaN72.45' -> NaN Conversion_syntax
basx747 toSci 'sNaN-72' -> NaN Conversion_syntax
basx748 toSci "Inf" -> Infinity
basx749 toSci "inf" -> Infinity
basx750 toSci "iNf" -> Infinity
basx751 toSci "INF" -> Infinity
basx752 toSci "+Inf" -> Infinity
basx753 toSci "+inf" -> Infinity
basx754 toSci "+iNf" -> Infinity
basx755 toSci "+INF" -> Infinity
basx756 toSci "-Inf" -> -Infinity
basx757 toSci "-inf" -> -Infinity
basx758 toSci "-iNf" -> -Infinity
basx759 toSci "-INF" -> -Infinity
basx760 toSci "Infinity" -> Infinity
basx761 toSci "infinity" -> Infinity
basx762 toSci "iNfInItY" -> Infinity
basx763 toSci "INFINITY" -> Infinity
basx764 toSci "+Infinity" -> Infinity
basx765 toSci "+infinity" -> Infinity
basx766 toSci "+iNfInItY" -> Infinity
basx767 toSci "+INFINITY" -> Infinity
basx768 toSci "-Infinity" -> -Infinity
basx769 toSci "-infinity" -> -Infinity
basx770 toSci "-iNfInItY" -> -Infinity
basx771 toSci "-INFINITY" -> -Infinity
-- Specials and zeros for toEng
basx772 toEng "NaN" -> NaN
basx773 toEng "-Infinity" -> -Infinity
basx774 toEng "-sNaN" -> -sNaN
basx775 toEng "-NaN" -> -NaN
basx776 toEng "+Infinity" -> Infinity
basx778 toEng "+sNaN" -> sNaN
basx779 toEng "+NaN" -> NaN
basx780 toEng "INFINITY" -> Infinity
basx781 toEng "SNAN" -> sNaN
basx782 toEng "NAN" -> NaN
basx783 toEng "infinity" -> Infinity
basx784 toEng "snan" -> sNaN
basx785 toEng "nan" -> NaN
basx786 toEng "InFINITY" -> Infinity
basx787 toEng "SnAN" -> sNaN
basx788 toEng "nAN" -> NaN
basx789 toEng "iNfinity" -> Infinity
basx790 toEng "sNan" -> sNaN
basx791 toEng "Nan" -> NaN
basx792 toEng "Infinity" -> Infinity
basx793 toEng "sNaN" -> sNaN
-- Zero toEng, etc.
basx800 toEng 0e+1 -> "0.00E+3" -- doc example
basx801 toEng 0.000000000 -> 0E-9
basx802 toEng 0.00000000 -> 0.00E-6
basx803 toEng 0.0000000 -> 0.0E-6
basx804 toEng 0.000000 -> 0.000000
basx805 toEng 0.00000 -> 0.00000
basx806 toEng 0.0000 -> 0.0000
basx807 toEng 0.000 -> 0.000
basx808 toEng 0.00 -> 0.00
basx809 toEng 0.0 -> 0.0
basx810 toEng .0 -> 0.0
basx811 toEng 0. -> 0
basx812 toEng -.0 -> -0.0
basx813 toEng -0. -> -0
basx814 toEng -0.0 -> -0.0
basx815 toEng -0.00 -> -0.00
basx816 toEng -0.000 -> -0.000
basx817 toEng -0.0000 -> -0.0000
basx818 toEng -0.00000 -> -0.00000
basx819 toEng -0.000000 -> -0.000000
basx820 toEng -0.0000000 -> -0.0E-6
basx821 toEng -0.00000000 -> -0.00E-6
basx822 toEng -0.000000000 -> -0E-9
basx830 toEng 0.00E+0 -> 0.00
basx831 toEng 0.00E+1 -> 0.0
basx832 toEng 0.00E+2 -> 0
basx833 toEng 0.00E+3 -> 0.00E+3
basx834 toEng 0.00E+4 -> 0.0E+3
basx835 toEng 0.00E+5 -> 0E+3
basx836 toEng 0.00E+6 -> 0.00E+6
basx837 toEng 0.00E+7 -> 0.0E+6
basx838 toEng 0.00E+8 -> 0E+6
basx839 toEng 0.00E+9 -> 0.00E+9
basx840 toEng 0.0E+0 -> 0.0
basx841 toEng 0.0E+1 -> 0
basx842 toEng 0.0E+2 -> 0.00E+3
basx843 toEng 0.0E+3 -> 0.0E+3
basx844 toEng 0.0E+4 -> 0E+3
basx845 toEng 0.0E+5 -> 0.00E+6
basx846 toEng 0.0E+6 -> 0.0E+6
basx847 toEng 0.0E+7 -> 0E+6
basx848 toEng 0.0E+8 -> 0.00E+9
basx849 toEng 0.0E+9 -> 0.0E+9
basx850 toEng 0E+0 -> 0
basx851 toEng 0E+1 -> 0.00E+3
basx852 toEng 0E+2 -> 0.0E+3
basx853 toEng 0E+3 -> 0E+3
basx854 toEng 0E+4 -> 0.00E+6
basx855 toEng 0E+5 -> 0.0E+6
basx856 toEng 0E+6 -> 0E+6
basx857 toEng 0E+7 -> 0.00E+9
basx858 toEng 0E+8 -> 0.0E+9
basx859 toEng 0E+9 -> 0E+9
basx860 toEng 0.0E-0 -> 0.0
basx861 toEng 0.0E-1 -> 0.00
basx862 toEng 0.0E-2 -> 0.000
basx863 toEng 0.0E-3 -> 0.0000
basx864 toEng 0.0E-4 -> 0.00000
basx865 toEng 0.0E-5 -> 0.000000
basx866 toEng 0.0E-6 -> 0.0E-6
basx867 toEng 0.0E-7 -> 0.00E-6
basx868 toEng 0.0E-8 -> 0E-9
basx869 toEng 0.0E-9 -> 0.0E-9
basx870 toEng 0.00E-0 -> 0.00
basx871 toEng 0.00E-1 -> 0.000
basx872 toEng 0.00E-2 -> 0.0000
basx873 toEng 0.00E-3 -> 0.00000
basx874 toEng 0.00E-4 -> 0.000000
basx875 toEng 0.00E-5 -> 0.0E-6
basx876 toEng 0.00E-6 -> 0.00E-6
basx877 toEng 0.00E-7 -> 0E-9
basx878 toEng 0.00E-8 -> 0.0E-9
basx879 toEng 0.00E-9 -> 0.00E-9
rounding: half_up
precision: 9
-- subnormals and overflows
basx906 toSci '99e999999999' -> Infinity Overflow Inexact Rounded
basx907 toSci '999e999999999' -> Infinity Overflow Inexact Rounded
basx908 toSci '0.9e-999999999' -> 9E-1000000000 Subnormal
basx909 toSci '0.09e-999999999' -> 9E-1000000001 Subnormal
basx910 toSci '0.1e1000000000' -> 1E+999999999
basx911 toSci '10e-1000000000' -> 1.0E-999999999
basx912 toSci '0.9e9999999999' -> Infinity Overflow Inexact Rounded
basx913 toSci '99e-9999999999' -> 0E-1000000007 Underflow Subnormal Inexact Rounded Clamped
basx914 toSci '111e9999999999' -> Infinity Overflow Inexact Rounded
basx915 toSci '1111e-9999999999' -> 0E-1000000007 Underflow Subnormal Inexact Rounded Clamped
basx916 toSci '1111e-99999999999' -> 0E-1000000007 Underflow Subnormal Inexact Rounded Clamped
basx917 toSci '7e1000000000' -> Infinity Overflow Inexact Rounded
-- negatives the same
basx918 toSci '-99e999999999' -> -Infinity Overflow Inexact Rounded
basx919 toSci '-999e999999999' -> -Infinity Overflow Inexact Rounded
basx920 toSci '-0.9e-999999999' -> -9E-1000000000 Subnormal
basx921 toSci '-0.09e-999999999' -> -9E-1000000001 Subnormal
basx922 toSci '-0.1e1000000000' -> -1E+999999999
basx923 toSci '-10e-1000000000' -> -1.0E-999999999
basx924 toSci '-0.9e9999999999' -> -Infinity Overflow Inexact Rounded
basx925 toSci '-99e-9999999999' -> -0E-1000000007 Underflow Subnormal Inexact Rounded Clamped
basx926 toSci '-111e9999999999' -> -Infinity Overflow Inexact Rounded
basx927 toSci '-1111e-9999999999' -> -0E-1000000007 Underflow Subnormal Inexact Rounded Clamped
basx928 toSci '-1111e-99999999999' -> -0E-1000000007 Underflow Subnormal Inexact Rounded Clamped
basx929 toSci '-7e1000000000' -> -Infinity Overflow Inexact Rounded
rounding: ceiling
basx930 toSci '7e1000000000' -> Infinity Overflow Inexact Rounded
basx931 toSci '-7e1000000000' -> -9.99999999E+999999999 Overflow Inexact Rounded
rounding: up
basx932 toSci '7e1000000000' -> Infinity Overflow Inexact Rounded
basx933 toSci '-7e1000000000' -> -Infinity Overflow Inexact Rounded
rounding: down
basx934 toSci '7e1000000000' -> 9.99999999E+999999999 Overflow Inexact Rounded
basx935 toSci '-7e1000000000' -> -9.99999999E+999999999 Overflow Inexact Rounded
rounding: floor
basx936 toSci '7e1000000000' -> 9.99999999E+999999999 Overflow Inexact Rounded
basx937 toSci '-7e1000000000' -> -Infinity Overflow Inexact Rounded
rounding: half_up
basx938 toSci '7e1000000000' -> Infinity Overflow Inexact Rounded
basx939 toSci '-7e1000000000' -> -Infinity Overflow Inexact Rounded
rounding: half_even
basx940 toSci '7e1000000000' -> Infinity Overflow Inexact Rounded
basx941 toSci '-7e1000000000' -> -Infinity Overflow Inexact Rounded
rounding: half_down
basx942 toSci '7e1000000000' -> Infinity Overflow Inexact Rounded
basx943 toSci '-7e1000000000' -> -Infinity Overflow Inexact Rounded
rounding: half_even
-- Giga exponent initial tests
maxExponent: 999999999
minExponent: -999999999
basx951 toSci '99e999' -> '9.9E+1000'
basx952 toSci '999e999' -> '9.99E+1001'
basx953 toSci '0.9e-999' -> '9E-1000'
basx954 toSci '0.09e-999' -> '9E-1001'
basx955 toSci '0.1e1001' -> '1E+1000'
basx956 toSci '10e-1001' -> '1.0E-1000'
basx957 toSci '0.9e9999' -> '9E+9998'
basx958 toSci '99e-9999' -> '9.9E-9998'
basx959 toSci '111e9997' -> '1.11E+9999'
basx960 toSci '1111e-9999' -> '1.111E-9996'
basx961 toSci '99e9999' -> '9.9E+10000'
basx962 toSci '999e9999' -> '9.99E+10001'
basx963 toSci '0.9e-9999' -> '9E-10000'
basx964 toSci '0.09e-9999' -> '9E-10001'
basx965 toSci '0.1e10001' -> '1E+10000'
basx966 toSci '10e-10001' -> '1.0E-10000'
basx967 toSci '0.9e99999' -> '9E+99998'
basx968 toSci '99e-99999' -> '9.9E-99998'
basx969 toSci '111e99999' -> '1.11E+100001'
basx970 toSci '1111e-99999' -> '1.111E-99996'
basx971 toSci "0.09e999999999" -> '9E+999999997'
basx972 toSci "0.9e999999999" -> '9E+999999998'
basx973 toSci "9e999999999" -> '9E+999999999'
basx974 toSci "9.9e999999999" -> '9.9E+999999999'
basx975 toSci "9.99e999999999" -> '9.99E+999999999'
basx976 toSci "9.99e-999999999" -> '9.99E-999999999'
basx977 toSci "9.9e-999999999" -> '9.9E-999999999'
basx978 toSci "9e-999999999" -> '9E-999999999'