dtgvl48608 2016-07-11 14:37
浏览 31

如何在点php后打印

How can print after point two symbols something like that (92.25)

I have line like this:

$amount =($order['total'] * $this->currency->getvalue($order['currency_code']));
  • 写回答

1条回答 默认 最新

  • dongyou6795 2016-07-11 14:41
    关注

    If you want to always show two decimal places, you can use:

    number_format(51 * 1.2, 2)
    
    评论

报告相同问题?