StringParser.formatNumber() - Mtax-Development/GML-OOP GitHub Wiki
Name |
Type |
Optional |
number |
{real} |
No |
wholeNumberPlaces |
{int} |
No |
decimalPlaces |
{int} |
No |
replace? |
{bool} |
Yes |
Not applicable.
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.