| 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: | Prelude |
|---|---|
| Function: | encodeFloat |
| Type: | Integer -> Int -> a |
| Class: | RealFloat |
| Description: | inverse of decodeFloat |
| Related: | decodeFloat, exponent, significand |
Input: encodeFloat 2 6
Output: 128.0
Input: encodeFloat 4 (-4)
Output: 0.25
Input: encodeFloat (-2) (-4)
Output: -0.125