Struct Decimal128
Represents a Decimal128 value.
public struct Decimal128 : IConvertible, IComparable<Decimal128>, IEquatable<Decimal128>
- Implements
- Inherited Members
- Extension Methods
Constructors
- Decimal128(decimal)
Initializes a new instance of the Decimal128 struct.
- Decimal128(double)
Initializes a new instance of the Decimal128 struct.
- Decimal128(int)
Initializes a new instance of the Decimal128 struct.
- Decimal128(long)
Initializes a new instance of the Decimal128 struct.
- Decimal128(float)
Initializes a new instance of the Decimal128 struct.
- Decimal128(uint)
Initializes a new instance of the Decimal128 struct.
- Decimal128(ulong)
Initializes a new instance of the Decimal128 struct.
Properties
- MaxValue
Gets the maximum value.
- MinValue
Gets the minimum value.
- NegativeInfinity
Represents negative infinity.
- One
Represents one.
- PositiveInfinity
Represents positive infinity.
- QNaN
Represents a value that is not a number.
- SNaN
Represents a value that is not a number and raises errors when used in calculations.
- Zero
Represents zero.
Methods
- Compare(Decimal128, Decimal128)
Compares two specified Decimal128 values and returns an integer that indicates whether the first value is greater than, less than, or equal to the second value.
- CompareTo(Decimal128)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
- Equals(Decimal128)
Indicates whether the current object is equal to another object of the same type.
- Equals(Decimal128, Decimal128)
Determines whether the specified Decimal128 instances are considered equal.
- Equals(object)
Indicates whether this instance and a specified object are equal.
- FromComponents(bool, short, ulong, ulong)
Creates a new Decimal128 value from its components.
- FromIEEEBits(ulong, ulong)
Creates a new Decimal128 value from the IEEE encoding bits.
- GetExponent(Decimal128)
Gets the exponent of a Decimal128 value.
- GetHashCode()
Returns the hash code for this instance.
- GetIEEEHighBits()
Gets the high order 64 bits of the binary representation of this instance.
- GetIEEELowBits()
Gets the low order 64 bits of the binary representation of this instance.
- GetSignificandHighBits(Decimal128)
Gets the high bits of the significand of a Decimal128 value.
- GetSignificandLowBits(Decimal128)
Gets the high bits of the significand of a Decimal128 value.
- IsInfinity(Decimal128)
Returns a value indicating whether the specified number evaluates to negative or positive infinity.
- IsNaN(Decimal128)
Returns a value indicating whether the specified number is not a number.
- IsNegative(Decimal128)
Returns a value indicating whether the specified number is negative.
- IsNegativeInfinity(Decimal128)
Returns a value indicating whether the specified number evaluates to negative infinity.
- IsPositiveInfinity(Decimal128)
Returns a value indicating whether the specified number evaluates to positive infinity.
- IsQNaN(Decimal128)
Returns a value indicating whether the specified number is a quiet not a number.
- IsSNaN(Decimal128)
Returns a value indicating whether the specified number is a signaled not a number.
- IsZero(Decimal128)
Returns a value indicating whether the specified number is zero.
- Negate(Decimal128)
Negates the specified x.
- Parse(string)
Converts the string representation of a number to its Decimal128 equivalent.
- ToByte(Decimal128)
Converts the value of the specified Decimal128 to the equivalent 8-bit unsigned integer.
- ToDecimal(Decimal128)
Converts the value of the specified Decimal128 to the equivalent decimal.
- ToDouble(Decimal128)
Converts the value of the specified Decimal128 to the equivalent double.
- ToInt16(Decimal128)
Converts the value of the specified Decimal128 to the equivalent 16-bit signed integer.
- ToInt32(Decimal128)
Converts the value of the specified Decimal128 to the equivalent 32-bit signed integer.
- ToInt64(Decimal128)
Converts the value of the specified Decimal128 to the equivalent 64-bit signed integer.
- ToSByte(Decimal128)
Converts the value of the specified Decimal128 to the equivalent 8-bit signed integer.
- ToSingle(Decimal128)
Converts the value of the specified Decimal128 to the equivalent float.
- ToString()
Returns the fully qualified type name of this instance.
- ToUInt16(Decimal128)
Converts the value of the specified Decimal128 to the equivalent 16-bit unsigned integer.
- ToUInt32(Decimal128)
Converts the value of the specified Decimal128 to the equivalent 32-bit unsigned integer.
- ToUInt64(Decimal128)
Converts the value of the specified Decimal128 to the equivalent 64-bit unsigned integer.
- TryParse(string, out Decimal128)
Converts the string representation of a number to its Decimal128 equivalent. A return value indicates whether the conversion succeeded or failed.
Operators
- operator ==(Decimal128, Decimal128)
Implements the operator ==.
- explicit operator byte(Decimal128)
Performs an explicit conversion from Decimal128 to byte.
- explicit operator char(Decimal128)
Performs an explicit conversion from Decimal128 to char.
- explicit operator decimal(Decimal128)
Performs an explicit conversion from Decimal128 to decimal.
- explicit operator double(Decimal128)
Performs an explicit conversion from Decimal128 to double.
- explicit operator short(Decimal128)
Performs an explicit conversion from Decimal128 to short.
- explicit operator int(Decimal128)
Performs an explicit conversion from Decimal128 to int.
- explicit operator long(Decimal128)
Performs an explicit conversion from Decimal128 to long.
- explicit operator sbyte(Decimal128)
Performs an explicit conversion from Decimal128 to sbyte.
- explicit operator float(Decimal128)
Performs an explicit conversion from Decimal128 to float.
- explicit operator ushort(Decimal128)
Performs an explicit conversion from Decimal128 to ushort.
- explicit operator uint(Decimal128)
Performs an explicit conversion from Decimal128 to uint.
- explicit operator ulong(Decimal128)
Performs an explicit conversion from Decimal128 to ulong.
- explicit operator Decimal128(double)
Performs an explicit conversion from double to Decimal128.
- explicit operator Decimal128(float)
Performs an explicit conversion from float to Decimal128.
- operator >(Decimal128, Decimal128)
Returns a value indicating whether a specified Decimal128 is greater than another specified Decimal128.
- operator >=(Decimal128, Decimal128)
Returns a value indicating whether a specified Decimal128 is greater than or equal to another another specified Decimal128.
- implicit operator Decimal128(byte)
Performs an implicit conversion from byte to Decimal128.
- implicit operator Decimal128(decimal)
Performs an implicit conversion from decimal to Decimal128.
- implicit operator Decimal128(short)
Performs an implicit conversion from short to Decimal128.
- implicit operator Decimal128(int)
Performs an implicit conversion from int to Decimal128.
- implicit operator Decimal128(long)
Performs an implicit conversion from long to Decimal128.
- implicit operator Decimal128(sbyte)
Performs an implicit conversion from sbyte to Decimal128.
- implicit operator Decimal128(ushort)
Performs an implicit conversion from ushort to Decimal128.
- implicit operator Decimal128(uint)
Performs an implicit conversion from uint to Decimal128.
- implicit operator Decimal128(ulong)
Performs an implicit conversion from ulong to Decimal128.
- operator !=(Decimal128, Decimal128)
Implements the operator !=.
- operator <(Decimal128, Decimal128)
Returns a value indicating whether a specified Decimal128 is less than another specified Decimal128.
- operator <=(Decimal128, Decimal128)
Returns a value indicating whether a specified Decimal128 is less than or equal to another another specified Decimal128.