Functions/DarkRP/Shared/formatMoney

From Official DarkRP Wiki
Jump to: navigation, search
Function
Function name DarkRP.formatMoney(number amount)
Description:
Format a number as a money value. Includes currency symbol.
Returns: string money
Part of Library: DarkRP
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Functions/DarkRP/Shared/formatMoney]DarkRP.formatMoney[/url][/b]

Function parameters

  1. amount (number)
  2. The money to format, e.g. 100000.


Function return values

  1. money (string)
  2. The money as a nice string, e.g. "$100,000".