在 Smarty 中执行此操作
{math equation=1.1+0.7 format="%.2f"}
我得到的结果是逗号分隔的十进制 1,80
不知道如何获得 1.80 值。
非常感谢。
decimalformat smarty3
decimalformat ×1
smarty3 ×1