Decimal3

Ecng.Interop

Represents a decimal value with a fixed exponent of -3.

实现: IFormattable

方法

op_Explicit(Decimal3) : Decimal3

Explicitly converts a decimal to a Decimal3 value.

value
The decimal value.

返回值: A Decimal3 representing the same value.

op_Implicit(Decimal) : decimal

Implicitly converts a Decimal3 value to a decimal.

value
The Decimal3 value.

返回值: A decimal representing the same value.

ToString
public override string ToString()
result = decimal3.ToString()

Returns a string representation of the tuple, with values separated by commas.

返回值: A string representing the tuple's values.

ToString
public string ToString(string format, IFormatProvider formatProvider)
result = decimal3.ToString(format, formatProvider)

字段

Exponent
public const sbyte Exponent
value = Decimal3.Exponent

The fixed exponent value (-3).

Mantissa
public long Mantissa
value = decimal3.Mantissa

The mantissa component of the decimal number.

_priceExponent
private static readonly decimal _priceExponent
value = Decimal3._priceExponent

The scaling factor for conversion based on the exponent.