Module

PreciseRational

Package
purescript-base-rationals
Repository
herrzinter/purescript-base-rationals

#PreciseRational Source

type PreciseRational = Ratio BigInt

Type alias for a Ratio of BigInts

#fromInt Source

fromInt :: Int -> PreciseRational

Create a PreciseRational from an Int with denominator one

#fromInts Source

fromInts :: Int -> Int -> PreciseRational

Create a PreciseRational from two Ints as numerator and denominator

#fromBI Source

fromBI :: BigInt -> PreciseRational

Create a PreciseRational from an BigInt with denominator one

#fromStrings Source

fromStrings :: String -> String -> Maybe PreciseRational

Try to create a PreciseRational from two Strings as numerator and denominator