base 10 decimals work now. closes #15
This commit is contained in:
@@ -474,6 +474,20 @@ export fn main(argc : isize, argv : &&u8, env : &&u8) -> i32 {
|
||||
0.000000000000000000000000000000000000000000000000000000000e0 as f64);
|
||||
printf(c"0.0e000000000000000000000000000000000000000000000000000000000: %a\n",
|
||||
0.0e000000000000000000000000000000000000000000000000000000000 as f64);
|
||||
printf(c"1.0: %a\n",
|
||||
1.0 as f64);
|
||||
printf(c"10.0: %a\n",
|
||||
10.0 as f64);
|
||||
printf(c"10.5: %a\n",
|
||||
10.5 as f64);
|
||||
printf(c"10.5e5: %a\n",
|
||||
10.5e5 as f64);
|
||||
printf(c"10.5e+5: %a\n",
|
||||
10.5e+5 as f64);
|
||||
printf(c"50.0e-2: %a\n",
|
||||
50.0e-2 as f64);
|
||||
printf(c"50e-2: %a\n",
|
||||
50e-2 as f64);
|
||||
|
||||
printf(c"\n");
|
||||
|
||||
@@ -524,6 +538,13 @@ export fn main(argc : isize, argv : &&u8, env : &&u8) -> i32 {
|
||||
000000000000000000000000000000000000000000000000000000000.0e0: 0x0p+0
|
||||
0.000000000000000000000000000000000000000000000000000000000e0: 0x0p+0
|
||||
0.0e000000000000000000000000000000000000000000000000000000000: 0x0p+0
|
||||
1.0: 0x1p+0
|
||||
10.0: 0x1.4p+3
|
||||
10.5: 0x1.5p+3
|
||||
10.5e5: 0x1.0059p+20
|
||||
10.5e+5: 0x1.0059p+20
|
||||
50.0e-2: 0x1p-1
|
||||
50e-2: 0x1p-1
|
||||
|
||||
0x1.0: 0x1p+0
|
||||
0x10.0: 0x1p+4
|
||||
|
||||
Reference in New Issue
Block a user