magento去掉小数点后面的0 <?php echo $_product->getPrice()?> PHP number_format() 函数 <?php echo number_format($_product->getPrice()); ?>