61
Technical forum / Re: in-game money....
« on: March 13, 2014, 05:59:07 PM »
Since WME doesn't have any built-in functions for formatting decimal numbers, the easiest way would be probably to compose the string yourself, something like this:
Code: WME Script
- var centsStr = "";
- if (moneycents < 10) centsStr = "0";
- moneytotal = moneydollar + "." + centsStr;
- MoneyItem.AmountString = moneytotal;