FloatingPoint.zero constructor
Construct a FloatingPoint that represents zero.
Implementation
factory FloatingPoint.zero(
{required int exponentWidth,
required int mantissaWidth,
bool explicitJBit = false,
bool subNormalAsZero = false}) {
final signLogic = Const(0);
final exponent = Const(0, width: exponentWidth, fill: true);
final mantissa = Const(0, width: mantissaWidth);
return FloatingPoint._(
signLogic, exponent, mantissa, explicitJBit, subNormalAsZero);
}