----------------------------------------------------------------------------- -- | -- Module : Numeric.Rounded -- Copyright : (C) 2012-2014 Edward Kmett, Daniel Peebles -- (C) 2013-2018 Claude Heiland-Allen -- License : LGPL -- Maintainer : Claude Heiland-Allen -- Stability : experimental -- Portability : non-portable -- ---------------------------------------------------------------------------- module Numeric.Rounded ( -- * Floating point numbers with a specified rounding mode and precision Rounded() , fromInt , fromDouble , fromLongDouble , toDouble , toLongDouble , toInteger' , precRound -- * Precision , Precision(precision) , Bytes , reifyPrecision -- * Rounding , Rounding(rounding) , RoundingMode(..) , reifyRounding -- * Useful Constants , kLog2 , kEuler , kCatalan -- * Combinators that are oblivious to precision , (.+.) , (.-.) , (.*.) , abs' , negate' , decodeFloat' , succUlp , predUlp -- * Mixed-precision operations , (!+!) , (!-!) , (!*!) , (!/!) , abs_ , negate_ , compare_ , (!==!) , (!/=!) , (!>=!) , (!<=!) , (!>!) , (!