简体中文
Appearance
conversion-library / twoToTen
function twoToTen(str: string): number
binaryToDecimal
别名:twoToTen
twoToTen
• str: string
string
输入二进制字符串
number
输出十进制数字
binaryToDecimal('1010') // 10
lib/decimal-conversion/decimalAndBinary.ts:52