System::Decimal::Truncate メソッド

Decimal::Truncate method

指定された Decimal オブジェクトが表す値と同じ整数部を持ち、すべての小数部が破棄された値を表す Decimal オブジェクトを返します。

static Decimal System::Decimal::Truncate(const Decimal &d)
パラメーター説明
dconst Decimal&10 進数の数

ReturnValue

指定された値と同じ整数部を持ち、小数部がすべて 0 の十進数値を表す Decimal オブジェクトです。

参照