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

FloattoCurr

Convert a float to a Currency value.

Declaration

Source position: sysstrh.inc line 154

function FloattoCurr(

  const Value: Extended

):Currency;

Description

FloatToCurrconverts the Valuefloating point value to a Currencyvalue. It checks whether Valueis in the valid range of currencies (determined by MinCurrencyand MaxCurrency). If not, an EConvertErrorexception is raised.

Errors

If Valueis out of range, an EConvertErrorexception is raised.

See also

EConvertError

  

Conversion error.

TryFloatToCurr

  

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

MinCurrency

  

Minimum Currency value

MaxCurrency

  

Maximum currency value