Sign in Join
FPDoc Onlineexperiment

FloatToCurr function

In unit sysutils

Convert a float to a Currency value.

Declaration

pascal
function FloatToCurr(const Value: Extended): Currency

Description

FloatToCurr converts the Value floating point value to a Currency value. It checks whether Value is in the valid range of currencies (determined by MinCurrency and MaxCurrency). If not, an EConvertError exception is raised.

Errors

If Value is out of range, an EConvertError exception is raised.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.