Float¶
The F64 type represents floating-point number.
Usage¶
You can initialize a F64 type from Python value, which supports float() conversion.
Accessing the value is possible via .value property.
>>> from rayforce import F64
>>> f64 = F64(123)
F64(123.0) # type: rayforce.F64
>>> f64.value
123.0 # type: float
Operations¶
Float types support arithmetic, comparison, and math operations.
Arithmetic Operations¶
>>> a = F64(10.5)
>>> b = F64(3.0)
>>> a + b
F64(13.5)
>>> a - b
F64(7.5)
>>> a * b
F64(31.5)
>>> a / b
F64(3.5)