[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcNumber.Decimal

Decimal Property

Decimal

Gets the decimal part value of the current Value. GcNumberValueInteger

Declaration
public decimal? Decimal { get; }
Public ReadOnly Property [Decimal] As Decimal?
Property Value
Type Description
decimal?

A nullable decimal value indicates the decimal part of the entered number.

Remarks

This property allows you to retrieve the decimal portion of the current value at run time. You can also retrieve the integer portion using the Integer property. For example:

number1.Value = -1234.120
With the example above, the Decimal returns -0.12 and the Integer property returns -1234.

number1.Value = 1234
With the example above, the Decimal returns 0 and the Integer property returns 1234.

If the underlying value is set to null, this property will return a null.