module Deka.Dec
( Dec
, module Deka.Context
, fromByteString
, toByteString
, toEngByteString
, add
, subtract
, multiply
, fma
, divide
, divideInteger
, remainder
, remainderNear
, abs
, plus
, minus
, compare
, compareSignal
, compareTotal
, compareTotalMag
, max
, maxMag
, min
, minMag
, nextMinus
, nextPlus
, nextToward
, sameQuantum
, quantize
, rescale
, scaleB
, and
, or
, xor
, shift
, rotate
, invert
, reduce
, toIntegralExact
, toIntegralValue
, exp
, ln
, logB
, log10
, power
, squareRoot
, PosNeg(..)
, Number(..)
, Class(..)
, strToClass
, numClass
, isNormal
, isSubnormal
, isFinite
, isInfinite
, isNaN
, isNegative
, isPositive
, isSigned
, isQNaN
, isSNaN
, isSpecial
, isZero
, isZeroCoeff
, isOddCoeff
, Sign(..)
, sign
, EvenOdd(..)
, evenOdd
, version
) where
import Deka.Internal.Dec.CtxFree
import Deka.Internal.Dec.Ctx
import Deka.Internal.Mpdec
import Deka.Context
import Data.ByteString.Char8 as BS8
import Prelude (Show(..), (.))
instance Show Dec where
show = BS8.unpack . toByteString