ZVON > References > Haskell reference
| Indexes | Syntax | >> Prelude << | Ratio | Complex | Numeric | Ix | Array | List | Maybe | Char | Monad | IO | Directory | System | Time | Locale | CPUTime | Random

Module: Prelude
Function: toRational
Type: Real a => a -> Rational
Class: Real
Description: the function creates rational numbers
Related:

Example 1

Input: toRational 1.25

Output: 5 % 4