Ratio

Standard functions on rational numbers
Rational numbers, with numerator and denominator of some Integral type. Note that Ratio's instances inherit the deficiencies from the type parameter's. For example, Ratio Natural's Num instance has similar problems to Natural's.
Rational
TextShow instance for Ratio. Since: 2
Valid for: G
Ratios of mathematical objects.
Rational numbers, with numerator and denominator of some Integral type. Note that Ratio's instances inherit the deficiencies from the type parameter's. For example, Ratio Natural's Num instance has similar problems to Natural's.
A rational number, represented as the ratio of two Integral numbers.
Convenient synonym for Fraction.
convert a Rect to a ratio
>>> :set -XNegativeLiterals

>>> ratio (Rect (-1) 1 (-0.5) 0.5)
2.0
Converter of 3 kind of number (int,float,ratio) string to rational
>>> parse (equivalentPositions ratio) "" "x+1,y+2,z+3"
Right [[1 % 1,0 % 1,0 % 1,1 % 1],[0 % 1,1 % 1,0 % 1,2 % 1],[0 % 1,0 % 1,1 % 1,3 % 1]]
Compose multiple actions to create a ratio. Useful for graphing percentage information, e. g.
connectionUtilizationRate :: IO (Gauge IO)
connectionUtilizationRate = gauge $ ratio openConnectionCount $ return connectionPoolSize
Arbitrary-precision rational numbers, represented as a ratio of two Integer values. A rational number may be constructed using the % operator.
1.23. See above comment on IntegerL.