UMBC CMSC201, Computer Science I, Fall 1994 Sections 0101, 0102 and Honors

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 15 08:45:40 EDT 1994

Richard Chang, chang@gl.umbc.edu