Mitsubishi MELFA CR1D Instruction Manual page 321

Table of Contents

Advertisement

Abs
[Function]
Returns the absolute value of a given value.
[Format]
<Numeric Variable>=Abs(<Equation>)
[Reference Program]
1 P2.C=Abs(P1.C)
2 Mov P2
3 M2=-100
4 M1=Abs(M2)
[Explanation]
(1) Returns the absolute value (Value with the positive sign) of a given value.
[Reference]
Sgn
' P2.C will contain the value of P1.C without the sign.
' 100 is assigned to M1.
4MELFA-BASIC IV
Detailed Explanation of Functions 4-308

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melfa cr2dMelfa cr3d

Table of Contents