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: encodeFloat
Type: Integer -> Int -> a
Class: RealFloat
Description: inverse of decodeFloat
Related: decodeFloat, exponent, significand

Example 1

Input: encodeFloat 2 6

Output: 128.0

Example 2

Input: encodeFloat 4 (-4)

Output: 0.25

Example 3

Input: encodeFloat (-2) (-4)

Output: -0.125