System.SysUtils.TryFloatToCurr
Delphi
function TryFloatToCurr(const Value: Extended; out AResult: Currency): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall TryFloatToCurr(const System::Extended Value, /* out */ System::Currency &AResult);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | System.SysUtils |
Description
Converts a floating-point value into a Currency value.
TryFloatToCurr converts the specified floating-point value into a Currency value.
Value is the floating-point value to convert.
AResult returns the equivalent Currency value, if possible.
If TryFloatToCurr is successful, it returns True. If Value is not within the valid range for a Currency value, TryFloatToCurr returns False.