Brass Core Plugins

strformat

Returns a string with formatted numeric results.

Syntax

strformat(string [, arg0 [, arg1, [arg2]]])

Remarks

This uses the .NET String.Format method in the invariant culture.

If an argument is a string it is passed as a string; if it is numeric and an integral value it is passed as an integer, otherwise it is passed as a double.

Example

Formatting as hexadecimal with the X format specifier.

.org $9D93
.echoln strformat("Program counter = ${0:X4}", $)