Click or drag to resize
FormatDecimals

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

The FormatDecimals function is used for formatting objects of type float into a string with a given number of decimals

Syntax
FormatDecimals(floatValue, numberOfDecimals)

Result type: String.

Parameters

Name

Type

Description

floatValue

Float

The float value that should be formatted with decimals.

numberOfDecimals

String

Number of decimals that the retunred string should have

Returns

formatted value with set number of decimals

Type: String.

Examples
formatdecimals(42.9, 7)

Result: 42.9000000