Skip to main content
Skip table of contents

f$Abs


f$Abs

Berechnung des Absolutbetrags einer Zahl.

Syntax:

Wert = f$Abs( Zahl )

 

Argument

Typ

Bedeutung

 

Zahl

Dezimal

Zahl (oder Ausdruck), von der der Absolutwert zu berechnen ist

Ergebnis:

Dezimal

berechneter Absolutbetrag

Beispiel:

PosWert = f$Abs( -2 )→ PosWert = 2

Diese Funktion ist aufgrund der automatischen Typkonvertierung auch ebenso für Ganzzahl-Parameter anwendbar.

Die Berechnung des Funktionswertes entspricht der Ausführung folgender Entscheidungstabelle (mit einem Übergabeparameter namens "Zahl", Typ Dezimal):

ET "Abs":

 

 

R 01

SONST

B 01

Zahl

< 0

 

B 02

 

 

 

A 01

 

return( - Zahl )

return ( Zahl )

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.