首页 > Web开发 > 详细

PHP 科学计数 转 Double

时间:2018-12-11 16:35:00      阅读:157      评论:0      收藏:0      [点我收藏+]

本文转自:https://stackoverflow.com/questions/4576927/convert-a-string-containing-a-number-in-scientific-notation-to-a-double-in-php

 

//eg $sciNotation = 2.3649E-8
$number = number_format($sciNotation, 10); //Use $dec_point large enough
echo rtrim($number, ‘0‘); //Remove trailing zeros

 

PHP 科学计数 转 Double

原文:https://www.cnblogs.com/freeliver54/p/10102958.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!