terntup-0.0.1: a ternary library

Safe HaskellSafe
LanguageHaskell98

TerntUp

Description

TerntUp offers terntUpterntDown functions for printingparsing between Integers and balanced ternary string representations

Synopsis

Documentation

tUp :: Integer -> (Char, Integer) Source

Determine the appropriate balanced ternary digit and carry value for a decimal digit

terntUp :: Integer -> String Source

Print an Integer to a balanced ternary string representation

tDown :: Char -> Integer Source

Determine the appropriate decimal digit value for a balanced ternary digit (in several styles)

terntDown :: String -> Integer Source

Parse a balanced ternary string representation to an Integer