Skip to content
Log in

money - Liquid Filter Reference

On this page

Description

Formats the input as money in the default currency

Property Value
Return Type string
Category numbers

Options

Option Description
compact Affects the presence of insignificant decimals
unit Sets the currency sign

Examples

liquid {{ 12.76 | money }}

Output: $12.76

liquid {{ 12.70 | money }}

Output: $12.70

liquid {{ 12.00 | money }}

Output: $12

Was this article helpful?

Was this article helpful?