StrFromInt

Converts an integer into its string representation in another base number system, such as binary (base-2) or octal (base-8).

Function Group Execution Windows Embedded Thin Client
StrFromInt String Synchronous Supported Supported Supported

Syntax

StrFromInt( numValue, numBase )
numValue
The numeric value to be converted into a string.
numBase
The base number system to convert into.

Returned value

This function returns a string representation of the given integer, in the specified base number system. The returned value can be stored in any tag of String type.

Notes

You can specify a real number instead of an integer, but only the whole part of the number will be converted. To convert the entire real number, use the StrFromReal function instead.

Also, if you do not need to change the base, then use the Str function instead.

Examples

Tag Name Expression
Tag StrFromInt( 26, 2 ) // Returned value = "11010"
Tag StrFromInt( 26, 8 ) // Returned value = "32"