- or download this
printf "%.16e\n", $x;
- or download this
1.0000000000000000e+000
1.1000000000000001e+000
...
1.9000000000000008e+000
Stop: x=2.0000000000000009e+000
No, x is not 2.
- or download this
for ( 1*10 .. 2*10 ) {
my $x = $_/10;
printf "%.16e\n", $x;
}
- or download this
1.0000000000000000e+000
1.1000000000000001e+000
...
1.8000000000000000e+000
1.8999999999999999e+000
2.0000000000000000e+000