1.number_format
{$number|number_format=2} Thousandths, two decimal places
2.round
{$number|round=2} Round to two decimal places
http://www.bkjia.com/PHPjc/753002.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/753002.htmlTechArticle1.number_format { $number | number_format = 2 } Thousandth place, retaining two decimal places 2.round { $ number |round = 2 } Round to two decimal places...