conversion-library / twoToEight
Function: twoToEight()
ts
function twoToEight(binary: string): string
binaryToOctal
version: v0.0.5+别名:
twoToEight
Parameters
• binary: string
输入二进制字符串
Returns
string
输出八进制字符串
Example
ts
binaryToOctal('1101') // '15'