loading... Pacem JS

Base Change

Change numerical from any base, fractionals included.

// sample use
const numTheoryUtils = Pacem.Mathematics.NumberTheory.Utils;
const converted_1 = numTheoryUtils.rebaseFloat('4a.c2', 16, 10);
const converted_2 = numTheoryUtils.rebaseInt(578, 9, 4);

// converted_1: ~74.7578125
// converted_2: 13130