duckling-0.1.5.0: A Haskell library for parsing text into structured data.

Safe HaskellNone
LanguageHaskell2010

Duckling.Numeral.Helpers

Synopsis

Documentation

decimalsToDouble :: Double -> Double Source #

77 -> .77 | Find the first power of ten larger that the actual number | Use it to divide x

parseDouble :: Text -> Maybe Double Source #

Add leading 0 when leading . for double parsing to succeed