numeric-prelude-0.4.3: An experimental alternative hierarchy of numeric type classes

Safe HaskellNone
LanguageHaskell98

Algebra.FloatingPoint

Synopsis

Documentation

class C a => C a where Source #

Counterpart of RealFloat but with NumericPrelude superclass.

Instances

C Double Source # 
C Float Source # 
RealFloat a => C (T a) Source # 

Methods

radix :: T a -> Integer Source #

digits :: T a -> Int Source #

range :: T a -> (Int, Int) Source #

decode :: T a -> (Integer, Int) Source #

encode :: Integer -> Int -> T a Source #

exponent :: T a -> Int Source #

significand :: T a -> T a Source #

scale :: Int -> T a -> T a Source #

isNaN :: T a -> Bool Source #

isInfinite :: T a -> Bool Source #

isDenormalized :: T a -> Bool Source #

isNegativeZero :: T a -> Bool Source #

isIEEE :: T a -> Bool Source #

C a => C (T a) Source # 

Methods

radix :: T a -> Integer Source #

digits :: T a -> Int Source #

range :: T a -> (Int, Int) Source #

decode :: T a -> (Integer, Int) Source #

encode :: Integer -> Int -> T a Source #

exponent :: T a -> Int Source #

significand :: T a -> T a Source #

scale :: Int -> T a -> T a Source #

isNaN :: T a -> Bool Source #

isInfinite :: T a -> Bool Source #

isDenormalized :: T a -> Bool Source #

isNegativeZero :: T a -> Bool Source #

isIEEE :: T a -> Bool Source #