Module
Data.Fractional
- Package
- purescript-numerics
- Repository
- proclivis/purescript-numerics
A Fractional
typeclass.
#Fractional Source
class (Real a, DivisionRing a) <= Fractional a where
The Fractional
class represents fractional numbers, similar to the Haskell version.
Members
fromRational :: Rational -> a
Instances
#fromFractional Source
fromFractional :: forall b a. Fractional a => Fractional b => a -> b
A helper function for general conversion between Fractional
values.
Fractional
instance forInt
.Fractional
instance forNumber
.