13.1 Constants and types

The following types are defined in the math unit:

 Type
   Float = Extended;
   PFloat = ^FLoat
All calculations are done with the Float type. This allows to recompile the unit with a different float type to obtain a desired precision. The pointer type is used in functions that accept an array of values of arbitrary length.
 Type
    TPaymentTime = (PTEndOfPeriod,PTStartOfPeriod);
TPaymentTime is used in the financial calculations.
 Type
    EInvalidArgument = Class(EMathError);
The EInvalidArgument exception is used to report invalid arguments.