Skip to content

conversion-library / decimalToBinary

Function: decimalToBinary()

ts
function decimalToBinary(num: number): string

decimalToBinary

alias:tenToTwo

Parameters

num: number

Enter decimal numerical value

Returns

string

Return binary

Example

ts
decimalToBinary(10) // '1010'

Defined in

lib/decimal-conversion/decimalAndBinary.ts:16