Safe Haskell | None |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
Synopsis
- stringToUnsignedDecimal :: Num i => String -> i
Functions
stringToUnsignedDecimal :: Num i => String -> i Source #
- N.B. much faster than the instance of
Read
for the integral type. TODO: compare withreadDec
. - N.B. ignores any leading zeroes.
- CAVEAT:
digitToInt
throws an exception if it receives a character which isn't a digit.