编辑代码:
查看结果 »
试一试 - ©
w3ii.com
The toPrecision() method returns a string, with a number written with a specified length: