yen() Function

Function

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.

Parameters

Keyword Type Description

number

Decimal

The number of yen to be returned as text.

decimals

Decimal

The number of digits after the decimal to display. 2 by default.

Returns

Text

Usage considerations

If no arguments are passed, the yen symbol itself is returned as text.

Examples

You can experiment with this function in the test box below.

Test Input

yen(3213.43) returns ¥3,213.43

Open in Github Built: Thu, Oct 14, 2021 (02:44:31 PM)

On This Page

FEEDBACK