Skip to content

conversion-library / otherToTen

Function: otherToTen()

ts
function otherToTen(str: string, base: number): number

otherBaseToDecimal

alias:otherToTen

Parameters

str: string

A string with conversion

base: number

Binary string to be converted

Returns

number

Return decimal value

Example

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

Defined in

lib/decimal-conversion/decimalAndOtherBase.ts:65