yen( number, decimals )
Converts the number into yen by effectively adding a yen symbol (¥), a decimal point, and one comma for every three digits preceding the decimal.
Keyword | Type | Description |
---|---|---|
|
Decimal |
The number of yen to be returned as text. |
|
Decimal |
The number of digits after the decimal to display. 2 by default. |
Text
If no arguments are passed, the yen symbol itself is returned as text.
yen(3213.43)
returns ¥3,213.43