ratio-int-0.1.2: Fast specialisation of Data.Ratio for Int.

Safe HaskellSafe-Inferred
LanguageHaskell98

Data.RatioInt

Description

Provides a specialised version of Ratio for Int.

Runs about ten times faster than Ratio while being half as fast as floating-point types.

Synopsis

Documentation

data RatioInt Source

Rational numbers, with numerator and denominator of the Int type.

(%) :: Int -> Int -> RatioInt infixl 7 Source

Forms the ratio of two Int numbers.