博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
toexponential_Number toExponential()方法
阅读量:2502 次
发布时间:2019-05-11

本文共 502 字,大约阅读时间需要 1 分钟。

toexponential

You can use this method to get a string representing the number in exponential notation:

您可以使用此方法获取一个以指数表示形式表示数字的字符串:

new Number(10).toExponential() //1e+1 (= 1 * 10^1)new Number(21.2).toExponential() //2.12e+1 (= 2.12 * 10^1)

You can pass an argument to specify the fractional part digits:

您可以传递参数来指定小数位数:

new Number(21.2).toExponential(1) //2.1e+1new Number(21.2).toExponential(5) //2.12000e+1

Notice how we lost precision in the first example.

请注意,在第一个示例中我们是如何失去精度的。

翻译自:

toexponential

转载地址:http://zeqgb.baihongyu.com/

你可能感兴趣的文章
获取用户ip接口
查看>>
Django部署
查看>>
我与小娜(02):乘坐超速高铁,穿越时空60年
查看>>
H5取经之路——添加hover实现特定效果
查看>>
ultraiso:usb-hdd+ v2
查看>>
WINDOWS symbols
查看>>
SQL Server 2008 镜像的监控 - Joe.TJ -
查看>>
SQL Server DBA 文章:116篇 --DBA_Huangzj
查看>>
数据库Mysql性能优化
查看>>
程序猿是如何解决SQLServer占CPU100%的--马非码
查看>>
Shell之sed用法 转滴
查看>>
百度ueditor 拖文件或world 里面复制粘贴图片到编辑中 上传到第三方问题
查看>>
python基础之函数参数、嵌套、返回值、对象、命名空间和作用域
查看>>
公式推导【ASRCF//CVPR2019】
查看>>
Python(4)_Python中的数据类型
查看>>
HTTP 响应头信息
查看>>
cocos2dx中的层CCLayer
查看>>
Windows XP硬盘安装Ubuntu 12.04双系统图文详解
查看>>
【资料】哈代&拉马努金相关,悼文,哈佛演讲,及各种杂七杂八资料整理
查看>>
Use weechat (IRC client) on OS X. MacBook Pro
查看>>