StringParser.formatNumber() - Mtax-Development/GML-OOP GitHub Wiki

Arguments

Name
Type
Optional
number
No
wholeNumberPlaces
{int}
No
decimalPlaces
{int}
No
replace?
Yes

Returns

Not applicable.

Description

Add to the string or replace it with one containing a number formatted with a specified amount of displayed places for whole and decimal digits. If there is less whole numbers than specified, the remaining places will be occupied by spaces added to the left. If there is less decimal numbers than specified, the remaining places will be occupied with zeros to the right.

⚠️ **GitHub.com Fallback** ⚠️