<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16481" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><STRONG>Aqui mostrou o "NAO 
OK".</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>use strict;</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>my $num1 = 9.50;<BR>my $num2 = -7.9;<BR>my 
$num3 = 0.0;</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>if (($num1&lt;=$num3) &amp;&amp; 
($num1&gt;=$num2))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print "OK"; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp; 
else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print "Nao OK"; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=ptfzs@yahoo.com.br href="mailto:ptfzs@yahoo.com.br">Patty Silva</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=cascavel-pm@pm.org 
  href="mailto:cascavel-pm@pm.org">Cascavel Perl Mongers</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, August 01, 2007 12:53 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [Cascavel-pm] Problema com 
  IF</DIV>
  <DIV><BR></DIV>Pessoal.. estou fazendo um IF para verificar se um numero eh 
  maior que o outro..<BR>faco 
  assim:<BR>$num1=9.50;<BR>$num2=-7.9;<BR>$num3=0.0;<BR><BR>if(($num1&lt;=$num3) 
  &amp;&amp; ($num1&gt;=$num2))<BR>{<BR><BR>....print "OK";<BR><BR>}<BR><BR>Ele 
  imprimiu OK... ele nao compara float?<BR><BR><BR>Obrigada<BR><BR><BR>
  <P>Alertas do Yahoo! Mail em seu celular. <A 
  href="http://br.mobile.yahoo.com/mailalertas/">Saiba mais</A>. 
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Cascavel-pm mailing 
  list<BR>Cascavel-pm@pm.org<BR>http://mail.pm.org/mailman/listinfo/cascavel-pm</BLOCKQUOTE></BODY></HTML>