FloatingPoint32ValuePopulator class
A special type of FloatingPointValuePopulator that adjusts how FloatingPoint32Values are populated.
- Inheritance
-
- Object
- FloatingPointValuePopulator<
FloatingPoint32Value> - FloatingPoint32ValuePopulator
Constructors
- FloatingPoint32ValuePopulator(FloatingPoint32Value _unpopulated)
- Constructor for a 32-bit floating point value populator.
Properties
- bias → int
-
The bias of floating point value.
no setterinherited
- exponentWidth → int
-
The width of the exponent field.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- mantissaWidth → int
-
The width of the mantissa field.
no setterinherited
- maxExponent → int
-
The maximum exponent value.
no setterinherited
- minExponent → int
-
The minimum exponent value.
no setterinherited
- nan → FloatingPoint32Value
-
Creates a new FloatingPointValue representing
FloatingPointConstants.nan.
no setterinherited
- negativeInfinity → FloatingPoint32Value
-
Creates a new FloatingPointValue representing
FloatingPointConstants.negativeInfinity.
no setterinherited
- negativeZero → FloatingPoint32Value
-
Creates a new FloatingPointValue representing
FloatingPointConstants.negativeZero.
no setterinherited
- one → FloatingPoint32Value
-
Creates a new FloatingPointValue representing
FloatingPointConstants.one.
no setterinherited
- positiveInfinity → FloatingPoint32Value
-
Creates a new FloatingPointValue representing
FloatingPointConstants.positiveInfinity.
no setterinherited
- positiveZero → FloatingPoint32Value
-
Creates a new FloatingPointValue representing
FloatingPointConstants.positiveZero.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
ofBigInts(
BigInt exponent, BigInt mantissa, {bool sign = false}) → FloatingPoint32Value -
FloatingPointValue constructor from a set of BigInts of the binary
representation and the size of the exponent and mantissa
inherited
-
ofBinaryStrings(
String sign, String exponent, String mantissa) → FloatingPoint32Value -
FloatingPointValue constructor from a binary string representation of
individual bitfields
inherited
-
ofConstant(
FloatingPointConstants constantFloatingPoint) → FloatingPoint32Value -
Creates a new FloatingPointValue represented by the given
constantFloatingPoint
.inherited -
ofDouble(
double inDouble, {FloatingPointRoundingMode roundingMode = FloatingPointRoundingMode.roundNearestEven}) → FloatingPoint32Value -
Convert from double using its native binary representation
override
-
ofDoubleUnrounded(
double inDouble) → FloatingPoint32Value -
Convert a floating point number into a FloatingPointValue
representation. This form performs NO ROUNDING.
inherited
-
ofFloatingPoint(
FloatingPoint fp) → FloatingPoint32Value -
Extracts a FloatingPointValue from a FloatingPoint's current
value
.inherited -
ofFloatingPointPrevious(
FloatingPoint fp) → FloatingPoint32Value? -
Extracts a FloatingPointValue from a FloatingPoint's
previousValue
.inherited -
ofInts(
int exponent, int mantissa, {bool sign = false}) → FloatingPoint32Value -
FloatingPointValue constructor from a set of ints of the binary
representation and the size of the exponent and mantissa
inherited
-
ofLogicValue(
LogicValue val) → FloatingPoint32Value -
Construct a FloatingPointValue from a LogicValue
inherited
-
ofSpacedBinaryString(
String fp) → FloatingPoint32Value -
FloatingPointValue constructor from a single binary string representing
space-separated bitfields in the order of sign, exponent, mantissa.
inherited
-
ofString(
String fp, {int radix = 2}) → FloatingPoint32Value -
FloatingPointValue constructor from a radix-encoded string
representation and the size of the exponent and mantissa
inherited
-
populate(
{required LogicValue sign, required LogicValue exponent, required LogicValue mantissa}) → FloatingPoint32Value -
Populates the FloatingPointValue with the given
sign
,exponent
, andmantissa
, then performs additional validation.inherited -
random(
Random rv, {bool normal = false}) → FloatingPoint32Value -
Generate a random FloatingPointValue, supplying random seed
rv
.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited