Real Constants

A real constant follows the general pattern
which stands for You can omit either the decimal integer or the decimal fraction (but not both). You can omit either the decimal point or the letter e or E and the signed integer exponent (but not both).

The type of an real constant is real.


Constant Value
23.45e6 23.45 x 10^6
.0 0.0
0. 0.0
1. 1.0
-1.23 -1.23
2e-5 2.0 x 10^-5
3E+10 3.0 x 10^10
.09E34 0.09 x 10^34

Index Copyright © 2005 CadSoft Computer GmbH