 |
ALPHA-VISION® Mathematical Operations: Div
|
Div
SUMMARY
Div - Calculates the quotient of the given arguments
SYNTAX
Div(
<arg1, arg2, ...>);
ARGUMENTS
- arg1 ...argN (type:float)
-
The operands of the division. If beside the numerator (arg1) an
argument is null, the result becomes infinite (respectively the
highest on the PC displayable floating point number) and an entry is
written to the error file.
DESCRIPTION
Stack
- Missing arguments are taken from the stack (and removed from there).
- The result is pushed onto the stack.
Wirkung
Calculates the quotient of the given arguments, whereby there are
interpreted as floating point numbers:
arg1 / arg2 / ... / argN
EXAMPLES
//Stack before (2 Elements):
//"10"
//2
//"c" //Interpreted as null and since it is the denominator it is set to 1.
Sub(,1,4,, );
//Stack afterwards (1 Element):
//1,25
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