Usr_Calc

SUMMARY

Usr_Calc - Calculate job (+,-,*,/)

SYNTAX

Usr_Calc(<Operand1>,<Operand2>,<Operator>)

ARGUMENTS

Operand1
- First Operand
Operand2
- Second Operand
Operator
- Algebraic funktion ("+", "-", "*", "/")

DESCRIPTION

The defined function for the operands is accomplished and the result is returned.

Example
Obj_Value(SINUS)               read value of 'SINUS'
Usr_PushArgs()                 push value to the stack
Usr_Calc( ,2,-)                take value from stack and substract 2
Usr_PushArgs()                 push value to the stack

The result is available on the stack for further use.

EXAMPLES

Usr_Calc( ,2,*);

The missing value is taken from the stack and multiplied by 2.


Syntax Notation
[aaa]
aaa is optional (zero or one occurences)
(aaa|bbb)
aaa exclusive or bbb
(aaa)*
aaa may occur indefinitely often or may be omitted
(aaa)+
aaa may occur indefinitely often but at least once
(aaa)m..n
aaa may occur from m to n times