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 |
StrFromInt( numValue, numBase )
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.
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.
Tag Name | Expression |
---|---|
Tag | StrFromInt( 26, 2 ) // Returned value = "11010" |
Tag | StrFromInt( 26, 8 ) // Returned value = "32" |