Skip to content

Skalman/baseconvert

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Code

Base Convert - A library for easy conversion between numerical systems

Base Convert is an extensible JavaScript library to enable easy conversion between numerical systems, such as different bases (binary, decimal, hexadecimal) or roman numerals.

Goal: be able to convert numbers from and into all the world's different numerical systems.

Examples

Base(10, 2, "5.3")        // 101.0100110...
Base(10, "roman", "2598") // MMDXCVIII
Base(2, 13, "110110")     // 42

Demo

Either visit baseconvert.com or check out docs/demo.html.