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

Data.RatioInt

Description

Provides a specialised version of Ratio for Int.

Ratio

Int

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

Synopsis

data RatioInt Source

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

Instances

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

Forms the ratio of two Int numbers.