RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.TryFloatToCurr Function

Converts a floating-point value to a System::Currency value.

Pascal
function TryFloatToCurr(const Value: Extended; out AResult: Currency): Boolean;
C++
Boolean TryFloatToCurr(const Extended Value, Currency AResult);

TryFloatToCurr converts the specified floating-point value into a System::Currency value. 

Value is the floating-point value to convert. 

AResult returns the equivalent System::Currency value, if possible. 

If TryFloatToCurr is successful, it returns true. If Value is not within the valid range for a System::Currency value, TryFloatToCurr returns false. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!