| ZVON > References > Haskell reference |
| Intro / Search / ZVON |
| | 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: |
Input: fromRat 12
Output: 12.0