'Declaration Public ReadOnly Property Integer As Nullable(Of Decimal)
'Usage Dim instance As GcNumber Dim value As Nullable(Of Decimal) value = instance.Integer
public Nullable<decimal> Integer {get;}
'Declaration Public ReadOnly Property Integer As Nullable(Of Decimal)
'Usage Dim instance As GcNumber Dim value As Nullable(Of Decimal) value = instance.Integer
public Nullable<decimal> Integer {get;}
This property allows you to retrieve the integer portion of the current value at run time. You can also retrieve the decimal portion using the Decimal property. For example:
number1.Value = -1234.120
With the example above, the Integer returns -1234 and the Decimal property returns -0.12.
number1.Value = 1234
With the example above, the Integer returns 1234 and the Decimal property returns 0.
If the underlying value is set to a null reference (Nothing in Visual Basic), this property will return a a null reference (Nothing in Visual Basic).