Skip to content

conversion-library / binaryToOctal

Function: binaryToOctal()

ts
function binaryToOctal(binary: string): string

binaryToOctal

version: v0.0.5+

别名:twoToEight

Parameters

binary: string

输入二进制

Returns

string

返回八进制

Example

ts
binaryToOctal('1101') // '15'

Defined in

lib/decimal-conversion/binaryAndOctal.ts:49