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

Module: Numeric
Function: fromRat
Type: RealFloat a => Rational -> a
Description: converts a rational to a floating, it should be used in the Fractional instances of Float and Double.
Related:

Example 1

Input: fromRat 12

Output: 12.0