×
Inicio Aleatorio

How would I omit zero value decimals in a number format?

Creado: 19-05-20

Say I have {{ item.width }} and {{ item.height }} which are number fields with 2 decimal places.

In my template I have this:

Dimensions: {{ item.width }} x {{ item.height }} in.

https://craftcms.stackexchange.com/questions/566/how-would-i-omit-zero-value-decimals-in-a-number-format

Siguiente Enlace