Floats

From The Oxygene Language Wiki

Jump to:navigation, search

This is a Language topic
Feel free to add your notes to this topic below.



Delphi Prism has support for two kinds of float values, Single precision floats (4 bytes) and Double precision floats (8 bytes). All constants in Delphi Prism source code are doubles by default.

const
  PI: Double = 3.14;
  SpeedOfLight: Double = 3.0e8;

The dot is used as a decimal separator, and there is no thousand separator. The E or e is used to write large numbers without having to write out the trailing zeros. In the above expression 3.0e8 means 3.0 * (10 ^ 8).


See Also


Oxygene-48.png

Area: Oxygene Language
Compiler version: Oxygene 5

Language GlossaryKeywordsTypesFAQHow To

Navigation
Areas
More
Toolbox