VM Calculator

32-bit Calc32.dll provides CalcString function which takes a string with mathematical expression, evaluates it and returns resulting value. CalcString can be called from OPAL (Paradox 9, 10 or 11) or from ANY other language which supports calls to 32-bit DLL. CalcString supports complex expressions with parenthesis structure and various mathematical functions. It handles syntax and math errors. Paradox users: see example Paradox form Calc32.fsl.

CalcString is written on Delphi and declared in the Calc32.dll as:

OPAL syntax:

Allowable OPERANDS (in the order of precedence)in expressions:

Allowable FUNCTIONS (function names are case-insensitive):

All trigonometric functions assume that their argument is in radians.

Allowable CONSTANTS:

NUMBERS can be either standard (120.1) or scientific (example - 1.201E2) notations