# Rational

### From HaskellWiki

Values of type represent rational numbers exactly as the ratio of two s. Applying to an number will produce the rational number ; applying to a number will produce its rational value (or its closest approximation).
One can also construct values explicitly using the operator. For example, the fraction .

Rational

Integer

toRational

Integral

n

n % 1

toRational

Real

Rational

(%)

`2/3`

is constructed using 2 % 3