isLessThan static method

bool isLessThan(
  1. double value,
  2. FloatLength type, [
  3. Endian? endian
])

Check if a double value is less than the maximum representable value in the specified floating-point format.

Implementation

static bool isLessThan(double value, FloatLength type, [Endian? endian]) {
  if (value.isNaN || value.isInfinite) {
    return true;
  }
  final int bits = _toBits(value, endian);
  return _dobuleLessThan(bits, type);
}