-
Notifications
You must be signed in to change notification settings - Fork 0
/
Eta-Prelude-Classes-RealFrac.html
5 lines (5 loc) · 3.95 KB
/
Eta-Prelude-Classes-RealFrac.html
1
2
3
4
5
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Eta.Prelude.Classes.RealFrac</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Eta-Prelude-Classes-RealFrac.html");};
//]]>
</script></head><body class="no-frame"><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption empty"> </p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe</td></tr></table><p class="caption">Eta.Prelude.Classes.RealFrac</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>The <code><a href="Eta-Prelude-Classes-RealFrac.html#t:RealFrac">RealFrac</a></code> type class defines an interface
to extract components from fractions.</p></div></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">class</span> (Real a, Fractional a) => <a id="t:RealFrac" class="def">RealFrac</a> a <span class="keyword">where</span> <a href="#t:RealFrac" class="selflink">#</a></p><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="Eta-Prelude-Classes-RealFrac.html#v:properFraction">properFraction</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:properFraction" class="def">properFraction</a> :: Integral b => a -> (b, a) <a href="#v:properFraction" class="selflink">#</a></p><p class="src"><a id="v:truncate" class="def">truncate</a> :: Integral b => a -> b <a href="#v:truncate" class="selflink">#</a></p><p class="src"><a id="v:round" class="def">round</a> :: Integral b => a -> b <a href="#v:round" class="selflink">#</a></p><p class="src"><a id="v:ceiling" class="def">ceiling</a> :: Integral b => a -> b <a href="#v:ceiling" class="selflink">#</a></p><p class="src"><a id="v:floor" class="def">floor</a> :: Integral b => a -> b <a href="#v:floor" class="selflink">#</a></p></div><div class="subs instances"><p id="control.i:RealFrac" class="caption collapser" onclick="toggleSection('i:RealFrac')">Instances</p><div id="section.i:RealFrac" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:RealFrac:RealFrac:1" class="instance expander" onclick="toggleSection('i:ic:RealFrac:RealFrac:1')"></span> Integral a => <a href="Eta-Prelude-Classes-RealFrac.html#t:RealFrac">RealFrac</a> (Ratio a)</span></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:RealFrac:RealFrac:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:properFraction">properFraction</a> :: Integral b => Ratio a -> (b, Ratio a) <a href="#v:properFraction" class="selflink">#</a></p><p class="src"><a href="#v:truncate">truncate</a> :: Integral b => Ratio a -> b <a href="#v:truncate" class="selflink">#</a></p><p class="src"><a href="#v:round">round</a> :: Integral b => Ratio a -> b <a href="#v:round" class="selflink">#</a></p><p class="src"><a href="#v:ceiling">ceiling</a> :: Integral b => Ratio a -> b <a href="#v:ceiling" class="selflink">#</a></p><p class="src"><a href="#v:floor">floor</a> :: Integral b => Ratio a -> b <a href="#v:floor" class="selflink">#</a></p></div></div></td></tr></table></div></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.4</p></div></body></html>