inf method

FloatingPoint inf({
  1. Logic? sign,
  2. bool negative = false,
})

Construct a FloatingPoint that represents infinity for this FP type.

Implementation

FloatingPoint inf({Logic? sign, bool negative = false}) {
  final value = valuePopulator().ofConstant(supportsInfinities
      ? (negative
          ? FloatingPointConstants.negativeInfinity
          : FloatingPointConstants.positiveInfinity)
      : FloatingPointConstants.largestNormal);
  return _constant(value, sign: sign ?? Const(negative));
}