@hackage newbase600.1.0.0

Encodes and decodes numbers using Tantek Çelik's New Base 60 number system.

  • Installation

  • Dependencies (2)

  • Dependents (0)

NewBase60, Haskell Edition

Tests Hackage

This package includes an implementation of Tantek Çelik's New Base 60 number system.

Examples

import Data.String.NewBase60 ( numToSxg, sxgToNum )

-- It converts numbers into base 60
numToSxg 60 -- "10"
numToSxg 1337 -- "NH"

-- Converting to num filters out invalid characters
sxgToNum "1#O" -- 60
sxgToNum "NH*" -- 1337