HBigDecimal Struct
Namespace: Hazelcast.Models
Assembly: Hazelcast.Net.dll
Represents an Hazelcast DECIMAL
primitive type value.
public readonly struct HBigDecimal : IEquatable<HBigDecimal>
Implements
Inherited Members
Remarks
The DECIMAL
primitive type consists of a random precision BigInteger
UnscaledValue and a Int32 Scale which indicates the
number of digits of UnscaledValue that should be to the right of the decimal
point.
The actual value is therefore UnscaledValue*(10^-Scale).
Different combinations of (UnscaledValue
, Scale
) may represent the same
HBigDecimal number. Use the Normalize() method to get the unique
normalized representation of the number.
Corresponds to Java java.math.BigDecimal
.
Constructors
HBigDecimal(Decimal) | Initializes a new instance of the HBigDecimal struct. |
HBigDecimal(Int32) | Initializes a new instance of the HBigDecimal struct. |
HBigDecimal(BigInteger, Int32) | Initializes a new instance of the HBigDecimal struct. |
Fields
MinusOne | Gets a value that represents the number -1 (minus one). |
One | Gets a value that represents the number 1 (one). |
Ten | Gets a value that represents the number 10 (ten). |
Zero | Gets a value that represents the number 0 (zero). |
Properties
Scale | Gets the scale part of the number. |
UnscaledValue | Gets the unscaled value part of the number. |
Methods
Equals(HBigDecimal) | |
Equals(Object) | |
GetHashCode() | |
Normalize() | Returns equivalent HBigDecimal value but with Scale guaranteed to be non-negative. |
Parse(String) | Converts the string representation of a number to its HBigDecimal equivalent. |
Parse(String, CultureInfo) | Converts the string representation of a number to its HBigDecimal equivalent. |
ToDecimal() | Converts the numeric value of this instance to its equivalent Decimal representation. |
ToString() | |
ToString(CultureInfo) | Converts the numeric value of this instance to its equivalent String representation. |
TryParse(String, out HBigDecimal) | Converts the string representation of a number to its HBigDecimal equivalent. A return value indicates whether the operation succeeded. |
TryParse(String, CultureInfo, out HBigDecimal) | Converts the string representation of a number to its HBigDecimal equivalent. A return value indicates whether the operation succeeded. |
TryToDecimal(out Decimal) | Converts the numeric value of this instance to its equivalent Decimal representation. A return value indicates whether the operation succeeded. |
Operators
Equality(HBigDecimal, HBigDecimal) | Implements the == operator. |
Explicit(HBigDecimal to Decimal) | Implements the HBigDecimal to Decimal conversion. |
Explicit(Decimal to HBigDecimal) | Implements the Decimal to HBigDecimal conversion. |
Inequality(HBigDecimal, HBigDecimal) | Implements the != operator. |