ooPIC Logo

Str$ 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 value as a string written out as a decimal number.
Back to top of pageSyntax:
 
The following shows the format of the Str$ Function syntax.
 
Str$({expression})
 
The following table lists the elements of the Str$ Function syntax.
 
ElementDescription
{expression}Any valid expression.
Back to top of pageOperation:
 
When a Str$ function is encountered during the program's execution, it takes the {expression} element, calculates and then returns its decimal value written out as a series of characters.
Back to top of pageRemarks:
 

The Str$ function returns a string data type

The Str$ function returns a right justified, leading zeros retained value commensurate with the size of the expression (bit, word, byte) that is used as an argument.

Back to top of pageExamples:
 
A.VString = Str$(123)

Back to top of pageRelated Items:

 Strings (Chapter 13 ooPIC Programmers Guide.)
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.