Name

DoubleToComp Procedure

Syntax

procedure DoubleToComp(Value: Double; var result: Comp); cdecl;

Description

DoubleToComp converts a Double value to Comp. It is a real function.

Tips and Tricks

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

  • Double supports a wider range of values than Comp. Converting Double to Comp can result in runtime error 6 (EInvalidOp).

See Also

Comp Type, CompToDouble Function, Double Type
..................Content has been hidden....................

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