| | Floats are numbers with a decimal point and an optional exponent. If you specify an exponent or just a dot without decimal digits,
calculations will be done at maximum precision. Otherwise the result will be rounded to the number of digits after the decimal point.
Examples: |
a = 5.000
| A float with a precision of three decimal digits |
b = 4e0
| A float with maximum precision (4*10^0 = 4) |
c = 3.
| Just a dot without decimal digits also gives maximum precision |
d = -2.5e3
| A float with maximum precision (-2.5*10^3 = -2500) |
e = 7.345e-4
| Another float with maximum precision (7.345*10^-4 = 0.0007345) |
f = 0.0034
| A float with a precision of four decimal digits |
|
|