LifePlay-Revival/Docs/Modding/Command_Functions/convertToLocalCurrency.txt
DoctaSax 7fd1ff94e5 1.7
2018-07-26 21:33:38 +02:00

14 lines
No EOL
443 B
Text

Float.convertToLocalCurrency()
USE
Converts a dollar value to the local currency for the home city in string format.
TYPE: Command, non-Ref (syntax is ref-like)
RETURNS: String, expressing the number in local currency
THEME: Money
COMPARE: getRent, getSalary, setRent, setSalary
EXAMPLE:
Salary = 3000
SalaryConverted = Salary.convertToLocalCurrency()
"My salary is <SalaryConverted>." // will show up as 'My salary is £ 2000.'