DataBasic Reference > Statements and Intrinsic Functions > A > ABS Function

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

Reality V15.0 ()

ABS Function (DataBasic) (m618703+abs_f.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

ABS Function

Generate the absolute (positive) numeric value of an expression.

Syntax

ABS(expression)

Syntax Elements

expression An expression that evaluates to a numeric value.

Examples

A = 100
B = 25
C = ABS(B-A)

Assigns the value 75 to variable C.

A = ABS(Q)

Assigns the absolute value of variable Q to variable A.

X = 600
Y = ABS(X-1000)

Assigns the value 400 to variable Y.

X = -10
Y = ABS(X)

Assigns the value 10 to variable Y.

RealityV15.0Comment on this topic