[英]Liquid Round Display number as whole if number is 0 after decimal and display same price if there is a number after 0 tried round:1 but didn't work
如果小数点后的数字为 0,我想将价格显示为整数,但如果价格在小数点后有任何特定数字,那么它应该显示相同的价格
试过 round:1 但没用
您可以在价格后删除“.00”
{{ product.price | money | remove: '.00' }}
如果你没有“.00”,它会跳过它
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.