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: | exponent |

Type: | RealFloat a => a -> Int |

Class: | RealFloat |

Description: | The functions significand and exponent together provide the same information as decodeFloat, but rather than an Integer, significand x yields a value of the same type as x, scaled to lie in the open interval (-1,1). exponent 0 is zero. |

Related: | decodeFloat, encodeFloat, significand |

Example 1

**Input: **exponent 12

**Output: **4

Example 2

**Input: **exponent 1.12

**Output: **1