Ecommerce for Statamic

Cents

Outputs the cents of a value. (Everything after the decimal point)

Parameters

value
Currency value. eg. 15.95

Example

{{ bison:cents value="15.95" }}
Outputs: 95

Also available as {{ bison:minor }} if you don’t want to use the term ‘cents’.


Problem with this page? Edit it on Github.