Parsing of numbers.
- parseFloat :: GenParser Char st Double
- parseExtFloat :: GenParser Char st Double
- parseIntegral :: (Integral a, Read a) => GenParser Char st a
- parseSignum :: GenParser Char st Char
Documentation
parseFloat :: GenParser Char st DoubleSource
Parse a double value. This is exactly the same code as in Real World Haskell, p. 400.
TODO There are some strange 'floating point numbers' running around in the wild that can not be parsed using this code. (eg.: +.5) or (+0.5)