conversion-library / exponentialToNumber
Function: exponentialToNumber()
ts
function exponentialToNumber(value: string): number
exponentialToNumber
version: v0.0.15+Parameters
• value: string
传入科学计数法的字符串
Returns
number
数字
Example
ts
exponentialToNumber(1.23456e+5)
// 123456
exponentialToNumber(1.23e+5)
// 123000
exponentialToNumber(1.2345678e+5)
// 123456.78