System.Currency.operator ()

提供: RAD Studio API Documentation
移動先: 案内検索

C++

__fastcall operator double() const {return ((double)Val) / 10000;}
__fastcall operator int() const    {return (int) (Val / 10000);}
__fastcall operator System::String() const;

プロパティ

種類 可視性 ソース ユニット
function public syscurr.h System Currency

説明

Currency オブジェクトを変換します。

int は,Currency オブジェクトを int に変換する変換演算子です。

double は,Currency オブジェクトを double に変換する変換演算子です。

System::String は,通貨値を文字列表現に変換する変換演算子です。この変換には,浮動小数点変換規則 ffGeneral が使用されます。詳細については,AnsiString クラスのメソッド CurrToStrF および FloatToStrF の説明を参照してください。