<div>Hello,</div>
<div> </div>
<div>yes that is exactly what I mean, however I mean what kind of value do I need to input in 'a' that gets me an error back? That is is from the Floating class? (Other than undefined)</div>
<div> </div>
<div>Could you please explain to me what IEEE 754 is and what exactly is a denormalized value? (After responding, I will google it also though).</div>
<div> </div>
<div>Thank you for your help,</div>
<div> </div>
<div>J.T.K.M.<br><br></div>
<div class="gmail_quote">2009/11/27 Roel van Dijk <span dir="ltr"><<a href="mailto:vandijk.roel@gmail.com">vandijk.roel@gmail.com</a>></span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">>ShowFloat -> Floating -> String<br>I do not really understand this type.<br><br>Did you mean something like this:<br>
<br>showFloat :: (Show a, Floating a) => a -> String<br>showFloat = show<br><br>In that case it depends on what type you fill in for 'a' and more<br>specifically that type's Show instance. One value for which most (or<br>
all) show functions will give an error is ⊥ (undefined). If the type<br>you pick is some kind of IEEE 754 type then you might have some<br>trouble with denormalized values. But that is just a guess, you would<br>have to test for that.<br>
<br>If that is not what you mean than I would appreciate some clarification.<br><br>Regards,<br><font color="#888888">Roel<br></font></blockquote></div><br>