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

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

プロパティ値

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

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

 

 


© 2014 GrapeCity inc. All rights reserved.