top of page
On this page
RealFloat32
Flag4j provides two real reference implementations of the Field interface through the RealFloat32 and RealFloat64 classes. This page will cover the 32-bit variant.
The RealFloat32 class is immutable and represents a 32-bit floating point variable that supports the operations defined on fields. It is essentially a thin wrapper around Java's primitive float type.
Initialization
A RealFloat32 value can be initialized from a primitive int or using Java's Float wrapper.
In addition to these constructors, some basic constants are also provided for convenience.
Arithmetic
RealFloat32 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