DecimalInfo

Ecng.Common.MathHelper

Represents detailed information about a decimal value.

プロパティ

EffectiveScale
public int EffectiveScale { get; }
value = decimalInfo.EffectiveScale

Gets the effective scale (scale minus trailing zeros) of the decimal.

Exponent
public int Exponent { get; }
value = decimalInfo.Exponent

Gets the exponent of the decimal.

フィールド

Mantissa
public long Mantissa
value = decimalInfo.Mantissa

The underlying mantissa of the decimal.

Precision
public int Precision
value = decimalInfo.Precision

The total number of digits in the decimal.

Scale
public int Scale
value = decimalInfo.Scale

The scale (number of digits after the decimal point) of the decimal.

TrailingZeros
public int TrailingZeros
value = decimalInfo.TrailingZeros

The count of trailing zeros in the decimal.