help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'sysutils' (#rtl)

TryFloatToCurr

Try to convert a float value to a currency value and report on success.

Declaration

Source position: sysstrh.inc line 185

function TryFloatToCurr(

  const Value: Extended;

  var AResult: Currency

):Boolean;

Description

TryFloatToCurr tries convert the Value floating point value to a Currency value. If successful, the function returns True and the resulting currency value is returned in AResult. It checks whether Value is in the valid range of currencies (determined by MinCurrency and MaxCurrency). If not, False is returned.

Errors

If Value is out of range, False is returned.

See also

FloatToCurr

  

Convert a float to a Currency value.

MinCurrency

  

Minimum Currency value

MaxCurrency

  

Maximum currency value

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505