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
$ swiftc ScientificNotation.swift -I . -L . -lUtils
error: link command failed with exit code 1 (use -v to see invocation)
ld: library not found for -lUtils
clang: error: linker command failed with exit code 1 (use -v to see invocation)