cents() Function

Function

cents( number, decimals )

Converts a number into its value in cents by effectively appending a cent sign to a fixed representation and one comma for every three digits preceding the decimal.

Parameters

Keyword Type Description

number

Decimal

The number of cents to be returned as text.

decimals

Number

The number of digits after the decimal to display.

Returns

Text

Examples

cents(123412) returns 123,412.00ยข

Open in Github Built: Tue, May 17, 2022 (03:09:06 PM)

On This Page

FEEDBACK