Discount table help - liquid math filters

Highlighted
Excursionist
50 0 3

Hi guys,

I have followed this guide: https://shopify.dev/docs/themes/liquid/reference/filters/math-filters to display discount table prices on products pages.

It works well but:

If the price is £/$2.61 it displays correct, if it's £/$2.60 it displays as £/$2.6 without a 0.

See screenshot images attached of code and display, all help is very appreciated. 

codecode

 

displaydisplay

 

0 Likes