ooPIC Logo

Abs Function

Main Index
Language Idx
Back to top of pageDescription:
 A function that takes an argument of a numeric data type and returns the argument's absolute value.
Back to top of pageSyntax:
 
The following shows the format of the Abs function syntax.
Abs({expression})
 
The following table lists the elements of the Abs function syntax.
ElementDescription
{expression}Any valid numeric expression between -32768 and 65535.
This includes signed numbers which range from -32768 to 32767 and unsigned numbers which range from 0 to 65535.
Back to top of pageOperation:
 When a Abs function is encountered during the program's execution, it takes the {expression} element which is expressed as a number and calculates and then returns the absolute value of that number. The absolute value of the number is the number with the sign removed.  For example, Abs(-3) is 3 and Abs(3) is also 3.
Back to top of pageRemarks:
 The Abs function returns a numeric data type.
Back to top of pageExample:
 The following are simple uses for logical and bitwise operators.
Visual Basic Syntax C and Java Syntax
A = Abs(90)
A = Abs(90);
Basic Syntax 
A = Abs(90)
 
Back to top of pageVersion History and Bug List:
 Firmware Ver B1: Introduced.

Bugs: No known bugs.


 

ooPIC Compiler Ver 6.0 (c) Copyright 1997 - 2007 Savage Innovations, LLC.