[futurebasic] re: USING bug with -0.000 input

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2011 : Group Archive : Group : All Groups

From: Walter Lenk <Walter_Lenk@...>
Date: Mon, 6 Jun 2011 16:06:39 -0400
Brian wrote:
>  You traced quite a bit, so where's the fix? ;-)

The external fix that I am using is:
  IF (result2 == -0.00) THEN LET result2 = result2 * -1

And this could easily be incorporated in the PSusing() routine at
the beginning, where it determines whether the number is negative.
A simple change of
  	if ( n < 0.0 )
to
  	if (( n < 0.0 ) OR ( n == -0.00))
would seem to do the job - please pardon my lack of understanding of 
C syntax, but I think you get the idea.

>  PSusing() tends to be a hornet's nest.

Yes, I can see what you mean'

Best,

  Walter

-- 

===========================================
Walter Lenk    Cambridge Ma    617-547-7781
===========================================