Pure Programmer
Blue Matrix


Cluster Map

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.

Example Floating Point Literals
Fixed PointScientific Notation
00e0
3.14153.1415e0
151.5e1
3263.26e2
0.1231.23e-1
-3.1415-3.1415e0
-0.001-1e-3

Output
$ rustc ScientificNotation.rs $ ./ScientificNotation 0 3.1415 15 326 0.123 -3.1415 -0.001

Solution