ABS/de
(Difference between revisions)
				
																
				
				
								
				| m (1 revision) |  (→(**COPIED FROM ENGLISH PAGE**) =) | ||
| Line 1: | Line 1: | ||
| − | + | = <span class="f_Header">Funktion</span> = | |
| − | + | Gibt den Absolutwert einer vorzeichenbehafteten numerischen Variablen zurück. | |
| <span style="font-family: Arial;"> </span> | <span style="font-family: Arial;"> </span> | ||
Revision as of 21:49, 3 March 2013
| Contents | 
Funktion
Gibt den Absolutwert einer vorzeichenbehafteten numerischen Variablen zurück.
Syntax
var = ABS(var2)
Remarks
| Var | Variable that is assigned with the absolute value of var2. | 
| Var2 | The source variable to retrieve the absolute value from. | 
var : Integer , Long, Single or Double.
var2 : Integer, Long, Single or Double.
The absolute value of a number is always positive.
See also
NONE
ASM
Calls: _abs16 for an Integer and _abs32 for a Long
Input: R16-R17 for an Integer and R16-R19 for a Long
Output:R16-R17 for an Integer and R16-R19 for a Long
Calls _Fltabsmem for a single from the fp_trig library.
Example
Dim a as Integer, c as Integer
a =-1000
c = Abs(a)
Print c
End
| Languages | English • Deutsch | 
|---|
