@hackage / newbase60

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

Latest0.1.0.0

About

Metadata

  • Last updated , by astralbijection
  • License MPL-2.0
  • Maintained by: astrid@astrid.tech

  • Lottery factor: 0

Links

Installation

Readme

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