Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Edge HMI

StrFromInt

  • Last UpdatedOct 29, 2026
  • 1 minute read

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

Function

Group

Execution

String Exp.

Windows

Windows Embedded

IoT View

Thin Clients

Mobile Access

StrFromInt

String

Synchronous

Yes

Supported

Supported

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.

Return 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"

In This Topic
Related Links