UMBC CMSC201, Computer Science I
Floating Point Constants
Examples of floating point constants
3.14159
314.159e-2
These are not good floating point constants
3,141.59 /* No commas allowed */
314159 /* This is an integer constant */
-3.14159 /* Really an expression */
Last Modified:
Thu Sep 14 13:46:02 EDT 1995
Richard Chang, chang@gl.umbc.edu