Project: Scientific Notation
Write a program that prints each of the [[literals]] from the table below. Use the scientific notation literals from the table in your program to see if the fixed point equivalents printed are correct.
Fixed Point | Scientific Notation |
---|---|
0 | 0e0 |
3.1415 | 3.1415e0 |
15 | 1.5e1 |
326 | 3.26e2 |
0.123 | 1.23e-1 |
-3.1415 | -3.1415e0 |
-0.001 | -1e-3 |
Output
$ perl ScientificNotation.pl
0
3.1415
15
326
0.123
-3.1415
-0.001