2007/2/8, Johan Geldenhuys &lt;<a href="mailto:johan@accesstel.co.za">johan@accesstel.co.za</a>&gt;:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">






<div>
<div><span><font face="Arial" size="2">Hi 
all,</font></span></div>
<div><span><font face="Arial" size="2"></font></span>&nbsp;</div>
<div><span><font face="Arial" size="2">I have a value that 
ranges between 48.01 and 48.57. a Float value in other 
words.</font></span></div>
<div><span><font face="Arial" size="2"></font></span>&nbsp;</div>
<div><span><font face="Arial" size="2">I want to look at 
changes in the value. If my normal range is between 48.35 and 48.45, how will I 
identify the value below 48.35 and above 48.45?</font></span></div>
<div><span><font face="Arial" size="2"></font></span>&nbsp;</div>
<div><span><font face="Arial" size="2">Something I tried 
was:</font></span></div>
<div><span><font face="Arial" size="2"></font></span>&nbsp;</div>
<div><span><font face="Arial" size="2">for a in 
range(48.35, 48.45):</font></span></div>
<div><span>&nbsp;&nbsp;&nbsp; <font face="Arial" size="2">print a</font></span></div>
<div><span><font face="Arial" size="2"></font></span>&nbsp;</div>
<div><span><font face="Arial" size="2">It gives me a value 
of 100.</font></span></div>
<div><span><font face="Arial" size="2"></font></span>&nbsp;</div>
<div><span><font face="Arial" size="2">Is it possible to 
get a range of a float value?</font></span></div>
</div></blockquote></div><br>It depends. What would you like it to be? All numbers in that range? They&#39;re uncountably infinite, so no way we could ever get that out of the computer. All actual float values? Depends too much on the implementation of the specific machine you&#39;re working on to be workable.
<br><br>Identifying values below 48.35 and above 48.45 is simply done by:<br>if value &lt; 48.35 or value &gt; 48.45 then...<br><br>No need to first create the range of values<br clear="all"><br>-- <br>Andre Engels, <a href="mailto:andreengels@gmail.com">
andreengels@gmail.com</a><br>ICQ: 6260644&nbsp;&nbsp;--&nbsp;&nbsp;Skype: a_engels