我的知识记录分享
2019-11-20 糖果小宝 php开发
function decimalNotation($num) { $parts = explode('E', $num); if(count($parts) != 2){ return $num; } $exp = abs(end($parts)) +3; $decimal = number_format($num, $exp); $decimal = rtrim($decimal, '0'); return rtrim($decimal, '.'); }
标签: php
发表评论:
昵称
邮件地址 (选填)
个人主页 (选填)
发表评论: