Click or drag to resize
FormatInt

[This is preliminary documentation and is subject to change.]

The FormatInt function is used for formatting objects of type int into a string

Syntax
FormatInt(integerValue, formattingString)

Result type: String.

Parameters

Name

Type

Description

integerValue

Integer

The Integer value that should be formatted.

formattingString

String

The String value specifying how the integer value should be formatted. The FormatInt function uses the .Net function int.ToString(string) to accomplish the formatting so the formattinString follows the same rules as for that function. See external links for more info on the possible values of the formattingString

Returns

Formatted value.

Type: String.

Examples
FormatInt(42, "C")

Result: kr 42,00

FormatInt(42, "X8")

Result: 0000002A

See Also