PeterO.PrecisionContext
PeterO.PrecisionContext
public class PrecisionContext
Deprecated. Use EContext from PeterO.Numbers/com.upokecenter.numbers.
A precision context.
Member Summary
ToString()
- Gets a string representation of this object.
PrecisionContext Constructor
public PrecisionContext( int precision, PeterO.Rounding rounding, int exponentMinSmall, int exponentMaxSmall, bool clampNormalExponents);
Initializes a new instance of the PeterO.PrecisionContext class. HasFlags will be set to false.
Parameters:
precision: The maximum number of digits a number can have, or 0 for an unlimited number of digits.
rounding: The rounding mode to use when a number can't fit the given precision.
exponentMinSmall: The minimum exponent.
exponentMaxSmall: The maximum exponent.
clampNormalExponents: Whether to clamp a number's significand to the given maximum precision (if it isn't zero) while remaining within the exponent range.
ToString
public override string ToString();
Gets a string representation of this object. Note that the format is not intended to be parsed and may change at any time.
Return Value:
A string representation of this object.