<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.3013.2600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Dear all,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; I'm currently use R v0.99 on Windows 98 
Second Edition. I have a&nbsp;question on some simple calculations. I wonder 
that I've done something wrong with the calculation.</FONT></DIV>
<DIV><FONT face=Arial size=2>Here is the imput commands:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Courier size=2>&gt; a &lt;- 25.01<BR>&gt; b &lt;- 56.08<BR>&gt; 
a.trunc &lt;- trunc(a)<BR>&gt; b.trunc &lt;- trunc(b)<BR>&gt; a.tail &lt;- a - 
a.trunc<BR>&gt; b.tail &lt;- b - b.trunc<BR>&gt; a.trunc<BR>[1] 25<BR>&gt; 
b.trunc<BR>[1] 56<BR>&gt; a.tail<BR>[1] 0.01<BR>&gt; b.tail<BR>[1] 0.08<BR>&gt; 
a.tail &lt;- (a - a.trunc) * 100<BR>&gt; b.tail &lt;- (b - b.trunc) * 
100<BR>&gt; a.tail<BR>[1] 1<BR>&gt; b.tail<BR>[1] 8<BR>&gt; N &lt;- ( (b.trunc - 
a.trunc) * 12 ) + (b.tail - a.tail)<BR>&gt; N<BR>[1] 379<BR>&gt; N == 379<BR>[1] 
FALSE</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; According to the above command and output, 
the value of N is equal to 379, but when I set the condition&nbsp;'N == 
379'&nbsp;R gives&nbsp;"FALSE" as&nbsp;the result.&nbsp;How do I avoid this 
problem?? I do the same thing in S-plus 4.0 release 3 on Win98 SE and obtained 
the same result.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; I look forward to hear your 
reply.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thank you in advance for your time.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Vincent</FONT></DIV></BODY></HTML>