ooPIC Logo

Sqr 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 square root.
Back to top of pageSyntax:
 
The following shows the format of the Sqr Function syntax.
 
Sqr({expression})
 
The following table lists the elements of the Sqr Function syntax.
 
ElementDescription
{expression}Any valid numeric expression between 0 and 65535.
Back to top of pageOperation:
 
When a Sqr function is encountered during the program's execution, it takes the {expression} element which is expressed a positive number between 0 and 65535, calculates and then returns the integer square root of that number. The square root of the number is a value that when squared (multiplied by itself), will yield the number.
Back to top of pageRemarks:
 
The Sqr function returns a numeric data type.
Back to top of pageExample:
 
 In this example, the variable A is being assigned to the integer square root of 90.
A = Sqr(90)
Back to top of pageVersion History and Bug List:
 Firmware Ver A1: Introduced.

Bugs: No known bugs.


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