NUMERIC_BASE

Convert number to given base

Description

Converts the given number into a text representation in another base.

Function signature

NUMERIC_BASE(number: Number, base: Number) => String

Parameter

Description

Number

Number to convert

Base

Base to convert

Examples

Formula

Return value

NUMERIC_BASE(123, 2)

1111011

NUMERIC_BASE(123, 4)

1323

NUMERIC_BASE(123, 8)

173

NUMERIC_BASE(123, 10)

123

NUMERIC_BASE(123, 16)

7b

NUMERIC_BASE(123, 2.5)

1111011

NUMERIC_BASE(123.625, 2)

1111011.101

NUMERIC_BASE(-123.625, 2)

-1111011.101