Skip to content
California, TX 70240 | (1800) 456 7890

云博客

云博客

  • 前端
  • windos
  • 微信
  • 数据库
  • 移动开发
  • 技术杂谈
  • 前端
  • windos
  • 微信
  • 数据库
  • 移动开发
  • 技术杂谈
  • Home
  • PHP 科学计数 转 Double
前端

PHP 科学计数 转 Double

云博小周宇2024年5月5日2023年8月4日1 Min Read

本文转自: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

 

Previous Postapache解压版安装服务
Next Postphp 守护进程 (简单)

近期文章

  • 36.VUE — 认识 Webpack 和 安装
  • kubernets kube-proxy的代理 iptables和ipvs
  • nginx + http + svn
  • 基于Docker搭建 Php-fpm + Nginx 环境
  • .net 5+ 知新:【1】 .Net 5 基本概念和开发环境搭建

近期评论

    © 2025. All Rights Reserved.