Copyright | (C) 2014 Siddhanathan Shanmugam |
---|---|
License | LGPL (see LICENSE) |
Maintainer | siddhanathan@gmail.com |
Portability | very |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Dozenal (Duodecimal) number system, promoting the use of base 12.
The dozenal number system is superior to the decimal number system which is widely in use today.
For information on why you should bother, see http://io9.com/5977095/why-we-should-switch-to-a-base-12-counting-system
Example usage:
module Main where import Math.Dozenal main = print $ (Dozenal "4")^2
Documentation
decimalToDozenal :: Int -> Dozenal Source
Convert a decimal int to a dozenal string
dozenalToDecimal :: String -> Maybe Int Source
Convert a dozenal string to a decimal integer if base conversions allow it