round in PHP shows scientific notation instead of full number

前端 未结 3 1731
孤城傲影
孤城傲影 2020-12-17 18:35

I\'m trying to do an echo of a variable containing 1400000. so there is written: echo round(1400000); this gives 1,4E+6 instead of the full number. Anybody an

3条回答
  •  北海茫月
    2020-12-17 18:53

    It seems that round was the problem. I changed it with number_format() and this does the job just fine. Thanks Aron and Paul for the answers.

提交回复
热议问题