Reference.Fpconstants History

Show minor edits - Show changes to markup

October 21, 2008, at 03:54 PM by Paul Badger -
Changed lines 18-19 from:
  2.34E5          2.34 x 105             234000
  67e-12        67.0 x 10-12         .000000000067
to:
  2.34E5          2.34 * 10^5             234000
  67e-12        67.0 * 10^-12         .000000000067
November 23, 2007, at 11:58 PM by Paul Badger -
Changed lines 10-11 from:

Floating point constants can also be expressed in a variety of scientific notation:

to:

Floating point constants can also be expressed in a variety of scientific notation. 'E' and 'e' are both accepted as valid exponent indicators.

November 23, 2007, at 11:57 PM by Paul Badger -
Changed lines 1-2 from:

Floating Point Constants

to:

floating point constants

Changed lines 14-20 from:

Floating-point evaluates to: also evaluates to: constant

10.0 10 2.34E5 2.34 x 105 234000 67e-12 67.0 x 10-12 .000000000067

to:

floating-point evaluates to: also evaluates to:

  constant 

   10.0	             10
  2.34E5          2.34 x 105             234000
  67e-12        67.0 x 10-12         .000000000067
November 23, 2007, at 11:54 PM by Paul Badger -
Added lines 1-21:

Floating Point Constants

Similar to integer constants, floating point constants are used to make code more readable. Floating point constants are swapped at compile time for the value to which the expression evaluates.

Examples:

n = .005;

Floating point constants can also be expressed in a variety of scientific notation:


Floating-point   evaluates to:      also evaluates to:
constant 

10.0	             10
2.34E5	         2.34 x 105             234000
67e-12	        67.0 x 10-12          .000000000067


Share