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 a number that has a specified formatting for number of displayed places of whole number and and decimal places. 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** ⚠️