在PHP中循环显示科学记数法而不是全数 [英] round in PHP shows scientific notation instead of full number

查看:189
本文介绍了在PHP中循环显示科学记数法而不是全数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图做一个包含1400000的变量的回声。
所以写有: echo round(1400000);
this给出了14E + 6而不是完整的数字。
有人有关于如何完全显示它的想法吗?

解决方案

似乎这轮是问题所在。
我用 number_format()改变了它,这样做的工作就好了。
感谢Aron和Paul的答案。


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 idea on how to display it fully?

解决方案

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.

这篇关于在PHP中循环显示科学记数法而不是全数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆