Name

CompToCurrency Function

Syntax

function CompToCurrency(Value: Comp): Currency; cdecl;

Description

CompToCurrency converts a Comp value to Currency. It is a real function.

Tips and Tricks

  • You can call CompToCurrency in a C++ Builder program. Delphi automatically converts Comp to Currency when it needs to, so you don’t need to call this function in a Delphi program.

  • Comp can represent numbers outside the range of Currency, so converting Comp to Currency can result in runtime error 6 (EInvalidOp).

See Also

Comp Type, CompToDouble Function, Currency Type, CurrencyToComp Procedure
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset