top of page
On this page
RealFloat64
Flag4j provides two real reference implementations of the Field interface through the RealFloat32 and RealFloat64 classes. This page will cover the 64-bit variant.
The RealFloat64 class is immutable and represents a 64-bit floating point variable that supports the operations defined on fields. It is essentially a thin wrapper around Java's primitive double type.
Initialization
A RealFloat64 value can be initialized from a primitive double, a RealFloat32, or using Java's Double wrapper.
In addition to these constructors, some basic constants are also provided for convenience.
Arithmetic
RealFloat64 objects support all the basic arithmetic operations of a general field.
For a full list of supported operations see the Javadoc API reference.
bottom of page