Saturday, August 28, 2010

jBase Commad ABS

ABS returns the mathematical absolute of the ()expression

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 : value

Example

CRT ABS (10-15)
Displays the value 5
PositiveVar = ABS (100-200)
Assigns the value 100 to the variable PositiveVar.

0 comments:

Post a Comment

 

Blog Info

A Pakistani Website by Originative Systems

Total Pageviews

Tutorial Jinni Copyright © 2015 WoodMag is Modified by Originative Systems