PowerTools CalendarGrid for Windows Forms 1.0J
Decimal プロパティ

入力された数値の小数部を取得します。
構文
Public ReadOnly Property Decimal As Nullable(Of Decimal)
public Nullable<decimal> Decimal {get;}

プロパティ値

入力された数値の小数部を示す null 許容の 10 進数値。
解説
このプロパティを使用すると、現在の値の小数部を実行時に取得できます。また、Integer プロパティを使用して整数部を取得することも可能です。たとえば、number1.Value = -1234.120 の場合、Decimal プロパティは-0.12 を返し、Integer プロパティは -1234 を返します。number1.Value = 1234 の場合、Decimal プロパティは 0 を返し、Integer プロパティは 1234 を返します。基になる値が null に設定されている場合、このプロパティは null を返します。
参照

GcNumber クラス
GcNumber メンバ
GcNumber クラス
Value プロパティ
Integer プロパティ

 

 


© 2014 GrapeCity inc. All rights reserved.