Atom

Floating-point numbers

Use a floating-point number for quantities that can have fractional parts. Atom uses binary64 for ordinary floating-point literals. Some decimal values are approximate in binary.

Divide a measurement

Divide a length of 5 into two equal pieces.

Atom
half = 5 / 2
print(half)
print(type(half) == f64)
Output
2.5
true

Division produces a floating-point value even when both inputs are integers.