Skip to content

conversion-library / tenToOther

Function: tenToOther()

ts
function tenToOther(num: number, base: number): string

decimalToOtherBase

别名:tenToOther

Parameters

num: number

输入整数

base: number

目标进制

Returns

string

目标进制字符串

Example

ts
decimalToOtherBase(10, 2) // '1010'

Defined in

lib/decimal-conversion/decimalAndOtherBase.ts:32