DOCS

# Float Constants

# Floating Point Constants

Float Constants are values that contain a decimal point plus an optional exponent. A float constant is distinguished from a double constants by postfixing a F character onto the end of the number.

- 9.12f - single precision floating point value
- 9.12E+1f - exponent is used to move the decimal point one place to the right. Thus 9.12E+1 represents 91.2
- 9.12e-1f - exponent is used to move the decimal point one place to the left. Thus 9.12e-1 represent 0.912

# Example

```
SUB MAIN
DIM X AS FLOAT
X=321.1234f
PRINT "X=" + STR$(X)
X=1.234E+2f
PRINT "X=" + STR$(X)
X=-1234.56E-2f
PRINT "X=" + STR$(X)
END SUB
```