Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
safe-decimal Numeric.Decimal No documentation available.
-
safe-decimal Numeric.Decimal Convert an Integer to a Decimal backed by a bounded integral while doing proper scaling and checking the bounds.
-
safe-decimal Numeric.Decimal Convert a bounded integeral into a decimal, while performing the necessary scaling
>>> import Numeric.Decimal >>> fromIntegralDecimalBounded 1234 :: IO (Decimal RoundHalfUp 4 Int) 1234.0000 >>> fromIntegralDecimalBounded 1234 :: IO (Decimal RoundHalfUp 4 Int16) *** Exception: arithmetic overflow
-
safe-decimal Numeric.Decimal No documentation available.
-
safe-decimal Numeric.Decimal Convert a Rational to a bounded Decimal, but only if there is no precision loss or Overflow/Undeflow.
-
safe-decimal Numeric.Decimal Convert from Scientific to bounded Decimal while checking for Overflow/Underflow
-
safe-decimal Numeric.Decimal Convert a decimal backed by an integral to another decimal backed by a bounded integeral, while checking for Overflow/Underflow
>>> import Numeric.Decimal >>> fromIntegralDecimalBounded 1234 :: IO (Decimal RoundHalfUp 4 Int) 1234.0000 >>> fromIntegralDecimalBounded 1234 :: IO (Decimal RoundHalfUp 4 Int16) *** Exception: arithmetic overflow
-
safe-decimal Numeric.Decimal Subtract two decimal numbers.
-
safe-decimal Numeric.Decimal No documentation available.
-
safe-decimal Numeric.Decimal Add two decimal numbers.