21 @args = split(/:/,$_,99);
23 $try = "$f('" . join("','", @args) . "');";
24 if (($ans1 = eval($try)) eq $ans) {
27 print "not ok $test\n";
28 print "# '$try' expected: '$ans' got: '$ans1'\n";
44 000000 0000000 00000:+0E+0
51 123456789:+123456789E+0
55 -123456789:-123456789E+0
76 +123456789:-123456789E+0
77 -123456789:+123456789E+0
78 +123.456789:-123456789E-6
79 -123456.789:+123456789E-3
85 +123456789:+123456789E+0
86 -123456789:+123456789E+0
87 +123.456789:+123456789E-6
88 -123456.789:+123456789E-3
90 $bigfloat::rnd_mode = 'trunc'
91 +10123456789:5:+10123E+6
92 -10123456789:5:-10123E+6
93 +10123456789:9:+101234567E+2
94 -10123456789:9:-101234567E+2
95 +101234500:6:+101234E+3
96 -101234500:6:-101234E+3
97 $bigfloat::rnd_mode = 'zero'
98 +20123456789:5:+20123E+6
99 -20123456789:5:-20123E+6
100 +20123456789:9:+201234568E+2
101 -20123456789:9:-201234568E+2
102 +201234500:6:+201234E+3
103 -201234500:6:-201234E+3
104 $bigfloat::rnd_mode = '+inf'
105 +30123456789:5:+30123E+6
106 -30123456789:5:-30123E+6
107 +30123456789:9:+301234568E+2
108 -30123456789:9:-301234568E+2
109 +301234500:6:+301235E+3
110 -301234500:6:-301234E+3
111 $bigfloat::rnd_mode = '-inf'
112 +40123456789:5:+40123E+6
113 -40123456789:5:-40123E+6
114 +40123456789:9:+401234568E+2
115 -40123456789:9:-401234568E+2
116 +401234500:6:+401234E+3
117 -401234500:6:-401235E+3
118 $bigfloat::rnd_mode = 'odd'
119 +50123456789:5:+50123E+6
120 -50123456789:5:-50123E+6
121 +50123456789:9:+501234568E+2
122 -50123456789:9:-501234568E+2
123 +501234500:6:+501235E+3
124 -501234500:6:-501235E+3
125 $bigfloat::rnd_mode = 'even'
126 +60123456789:5:+60123E+6
127 -60123456789:5:-60123E+6
128 +60123456789:9:+601234568E+2
129 -60123456789:9:-601234568E+2
130 +601234500:6:+601234E+3
131 -601234500:6:-601234E+3
133 $bigfloat::rnd_mode = 'trunc'
144 $bigfloat::rnd_mode = 'zero'
158 $bigfloat::rnd_mode = '+inf'
172 $bigfloat::rnd_mode = '-inf'
186 $bigfloat::rnd_mode = 'odd'
200 $bigfloat::rnd_mode = 'even'
259 +9999999999:+1:+1E+10
260 +99999999999:+1:+1E+11
266 +1000000:-1:+999999E+0
267 +10000000:-1:+9999999E+0
268 +100000000:-1:+99999999E+0
269 +1000000000:-1:+999999999E+0
270 +10000000000:-1:+9999999999E+0
271 +123456789:+987654321:+111111111E+1
272 -123456789:+987654321:+864197532E+0
273 -123456789:-987654321:-111111111E+1
274 +123456789:-987654321:-864197532E+0
293 +999999:+1:+999998E+0
294 +9999999:+1:+9999998E+0
295 +99999999:+1:+99999998E+0
296 +999999999:+1:+999999998E+0
297 +9999999999:+1:+9999999998E+0
298 +99999999999:+1:+99999999998E+0
303 +100000:-1:+100001E+0
304 +1000000:-1:+1000001E+0
305 +10000000:-1:+10000001E+0
306 +100000000:-1:+100000001E+0
307 +1000000000:-1:+1000000001E+0
308 +10000000000:-1:+10000000001E+0
309 +123456789:+987654321:-864197532E+0
310 -123456789:+987654321:-111111111E+1
311 -123456789:-987654321:+864197532E+0
312 +123456789:-987654321:+111111111E+1
322 +123456789123456789:+0:+0E+0
323 +0:+123456789123456789:+0E+0
333 +10101:+10101:+102030201E+0
334 +1001001:+1001001:+1002003002001E+0
335 +100010001:+100010001:+10002000300020001E+0
336 +10000100001:+10000100001:+100002000030000200001E+0
337 +11111111111:+9:+99999999999E+0
338 +22222222222:+9:+199999999998E+0
339 +33333333333:+9:+299999999997E+0
340 +44444444444:+9:+399999999996E+0
341 +55555555555:+9:+499999999995E+0
342 +66666666666:+9:+599999999994E+0
343 +77777777777:+9:+699999999993E+0
344 +88888888888:+9:+799999999992E+0
345 +99999999999:+9:+899999999991E+0
366 +999999999999:+9:+111111111111E+0
367 +999999999999:+99:+10101010101E+0
368 +999999999999:+999:+1001001001E+0
369 +999999999999:+9999:+100010001E+0
370 +999999999999999:+99999:+10000100001E+0
371 +1000000000:+9:+1111111111111111111111111111111111111111E-31
372 +2000000000:+9:+2222222222222222222222222222222222222222E-31
373 +3000000000:+9:+3333333333333333333333333333333333333333E-31
374 +4000000000:+9:+4444444444444444444444444444444444444444E-31
375 +5000000000:+9:+5555555555555555555555555555555555555556E-31
376 +6000000000:+9:+6666666666666666666666666666666666666667E-31
377 +7000000000:+9:+7777777777777777777777777777777777777778E-31
378 +8000000000:+9:+8888888888888888888888888888888888888889E-31
380 +35500000:+113:+3141592920353982300884955752212389380531E-34
381 +71000000:+226:+3141592920353982300884955752212389380531E-34
382 +106500000:+339:+3141592920353982300884955752212389380531E-34
383 +1000000000:+3:+3333333333333333333333333333333333333333E-31
384 $bigfloat::div_scale = 20
385 +1000000000:+9:+11111111111111111111E-11
386 +2000000000:+9:+22222222222222222222E-11
387 +3000000000:+9:+33333333333333333333E-11
388 +4000000000:+9:+44444444444444444444E-11
389 +5000000000:+9:+55555555555555555556E-11
390 +6000000000:+9:+66666666666666666667E-11
391 +7000000000:+9:+77777777777777777778E-11
392 +8000000000:+9:+88888888888888888889E-11
394 +35500000:+113:+314159292035398230088E-15
395 +71000000:+226:+314159292035398230088E-15
396 +106500000:+339:+31415929203539823009E-14
397 +1000000000:+3:+33333333333333333333E-11
398 $bigfloat::div_scale = 40
407 +2:+141421356237309504880168872420969807857E-38
411 +123.456:+1111107555549866648462149404118219234119E-38
412 +15241.383936:+123456E-3