Object Pascal - floatingpoint constant

signed decimal number, is made from whole and fractional part . in addition, we have the option to enter the floating point number with a decimal exponent.

floatingpoint constant

Description

 12.345

Output

Examples

Object Pascal

floatingpoint constant the possible of use:
x := 1.234;         // x = 1.234
y := x * 3.14;      // y = 3.87476
if y<5 then
   y := y/ 3.14;    // y = 1.234

Object Pascal

Other pieces of example codes:
1.9
3.14
x > 3.14
9.9
15 +7.5
1.14 > x

you can find it in the following collections: constants
Languages: en hu cz sk