Commad Syntax
ABS (expression)
Syntax Elements
expression can be of any form that should evaluate to a numeric. The ABS function will then return the mathematical absolute of the expression. This will convert any negative number into a positive result.Notes
express this as: value < 0 ? 0 - value : valueExample
CRT ABS (10-15)
Displays the value 5PositiveVar = ABS (100-200)
Assigns the value 100 to the variable PositiveVar.
0 comments:
Post a Comment