Rick,

Could you help me with this bug.  I'd really like to resolve it one
way or another as it is the oldest open bug.  But, every time I read I
don't even understand it.  <grin>

The doc says about format():

The number is first rounded according to standard Rexx rules, as
though the operation number+0 had been carried out.

So, if I do this in some Rexx code:

say '>' (999999999.9999999999 + 0)

I get this output:

> 1.00000000E+9

The bug itself states as below.  It seems to me that it is correct to
round to 1.00000000E+9.  There are 10 9s after the decimal.  If digits
is 9, isn't the rounding correct?


/* Rexx ***********************************
ORexx:
>1000000000.00000000000000000000000000000<
>1000000000.00000000000000000000000000000<
Regina:
>1000000000.00000000000000000000000000000<
> 999999999.99999999990000000000000000000<
*****************************************/
Say '>1000000000.00000000000000000000000000000<'
/*1234567890 12345678901234567890123456789*/
Say '>'"FORMAT"(999999999.9999999999,10,29,30,30)'<'

/* Ages ORexx on my OS/2 adds 32 spaces at the end
as did classic Rexx in 1993 or so
I think that Regina is correct in this case */

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to