duandie5707 2012-07-06 01:09
浏览 28

number_format问题,舍入小数

I have the following php code in two different pages

number_format($reporttotaldetuctmargin,2, '.', ',')

and actual value for both reporttotaldetuctmargin is 54604.785.

The problem I am having is one page giving result of 54604.78 and the other page giving 54604.79 ... The actual value for both page are float value.

Any idea ?

  • 写回答

0条回答 默认 最新

    报告相同问题?