$number format

Allows you to format a number using decimal digits and grouped thousands.


Example

Running this code will create an output format "#.#" with "1" decimal place from the number "10.123456".

This is shown in the UBot browser.

load html($plugin function("Data and Files Automation.dll", "$number format", 10.123456, "#.#"))

Running this code will create an output format "#.##" with "2" decimal place from the number "10.123456".

This is shown in the UBot browser.

load html($plugin function("Data and Files Automation.dll", "$number format", 10.123456, "#.##"))

Was this helpful?

Previous Article

$nl to br

Next Article

$number to words