繁体   English   中英

Liquid Round 如果数字在小数点后为 0,则显示整个数字,如果在 0 之后有数字,则显示相同的价格尝试了 round:1 但没有用

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM