FloatUtils class

Constructors

FloatUtils(double value)

Properties

hashCode int
The hash code for this object.
no setterinherited
isLessThan16 bool
no setter
isLessThan32 bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value double
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBytes(FloatLength? decodFloatType, [Endian? endianness]) Tuple<List<int>, FloatLength>
Encode the floating-point value into a byte representation using the specified floating-point format. Returns a tuple containing the encoded bytes and the format used.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

floatFromBytes16(List<int> bytes) double
Decode a 16-bit floating-point value from a byte array and return it as a double.
isLessThan(double value, FloatLength type, [Endian? endian]) bool
Check if a double value is less than the maximum representable value in the specified floating-point format.