[futurebasic] Re: [FB] Maximum floating point digits displayed

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 2009 : Group Archive : Group : All Groups

From: Robert Purves <listrp@...>
Date: Mon, 26 Oct 2009 09:20:01 +1300
Bill Zielenbach wrote:

> I had the gFBFloatMaxDigits in my code all along but it has not been  
> working as expected in FB 5 and above.
>
> Try this modification of your example:
>
> print pi
> print str$(pi)
> gFBFloatMaxDigits = 16
> print pi
> print str$(pi)
> stop

Thanks for the bug report. For historical reasons, str$() and print  
use completely different code to format a number, whereas they should  
both do the the same thing.  I added this to our bugs database.

499   Open    Error    str$( fpNum ) and 'print fpNum' give different  
results
PSstr() should convert with FBFloat2String()


Robert P.