ABS |
Top Previous Next |
If accu 1 is positive the operation will achieve nothing, otherwise the value of accu 1 will be negated and stored in accu 1. After ABS accu 1 is positive (or ‘0’) in any case.
You can only use ABS for numbers that are in the REAL-format. If you need the absolute value of Int- (DInt-) numbers you will program:
L 0 L number <I (D) JC Ok NEGI (NEGD) Ok : .......
See also:
|