Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 在php中将指数数转换为十进制数
有没有办法使用内置函数将指数数转换为 PHP 中的整数?格式化函数?
1.2378147769392E+14 转 123781477693917
number_format(1.2378147769392E+14,0,'','')
但是,对于处理大量数字,如果您想保持精度,您应该查看BCMath 扩展