Skip to content

conversion-library / tenToTwo

Function: tenToTwo()

ts
function tenToTwo(num: number): string

decimalToBinary

别名:tenToTwo

Parameters

num: number

输入整数

Returns

string

输出二进制字符串

Example

ts
decimalToBinary(10) // '1010'

Defined in

lib/decimal-conversion/decimalAndBinary.ts:25