Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- decimalsToDouble :: Double -> Double
- diffIntegerDigits :: Double -> Double -> Int
- double :: Double -> Maybe Token
- integer :: Integer -> Maybe Token
- multiply :: Token -> Token -> Maybe Token
- isMultipliable :: Predicate
- isNatural :: Predicate
- isPositive :: Predicate
- hasGrain :: Predicate
- divide :: Token -> Token -> Maybe Token
- notOkForAnyTime :: Token -> Maybe Token
- numberBetween :: Double -> Double -> PatternItem
- numberWith :: (NumeralData -> t) -> (t -> Bool) -> PatternItem
- numeralMapEL :: HashMap Text Int
- oneOf :: [Double] -> PatternItem
- parseDouble :: Text -> Maybe Double
- parseInt :: Text -> Maybe Int
- parseInteger :: Text -> Maybe Integer
- withGrain :: Int -> Token -> Maybe Token
- withMultipliable :: Token -> Maybe Token
- parseDecimal :: Bool -> Text -> Maybe Token
Documentation
decimalsToDouble :: Double -> Double Source #
77 -> .77 | Find the first power of ten larger that the actual number | Use it to divide x
numberBetween :: Double -> Double -> PatternItem Source #
numberWith :: (NumeralData -> t) -> (t -> Bool) -> PatternItem Source #
oneOf :: [Double] -> PatternItem Source #