Evaluate

The Evaluate built-in Glb.Financial method allows the actual calculation required to be specified in the first parameter to the method. In all other respects it behaves as if that calculation method had been called directly.

The action parameter is used to specify the method to call, and can be dynamically set to any of the following Glb.Financial member methods:

AnnualRateOfFlow

AnnuityFutureValue

Compound

Discount

FlowForFutureValue

FutureValueFlow

FutureValueFromAnnuity

Mortgage

PresentValueFlow

PresentValueToAnnuity

Failure behavior

If the name of the method returned by the first parameter is not a valid method of Glb.Financial, other than Evaluate, the method will set Glb.Status to “*****” and return 0.

If assigning the result to a signed number-primitive variable, truncation of significant digits occurs without warning if it is not of a sufficient length.

Syntax

Glb.Financial::Evaluate(
   action : stringExpression,
   futureValue : numericExpression,
   interestRate : numericExpression,
   timeUnits : numericExpression) : numericLiteral

Owner

Glb.Financial.

Return type

A numeric literal, length and decimal properties of which can vary. As a guideline, the internal intermediate work files are stored as USAGE COMP-2, and rounded on output.

Parameters