On Friday 26 Feb 2010, Brian Tiffin wrote:
> As far as I know ROUNDED is NEAREST-AWAY-FROM-ZERO, and I get a
> calculator result of
>
> 2177.705416666666667 so isn't .71 the proper round up?
>
> 002177.70 is the result for no ROUNDED clause, the default "rounding" being
> trunctation. No?
>
> I'm looking at Annex C of the July 2009 Draft. I'm not 100% on these
> specs, but I'd wager that OpenCOBOL is right on this one, and it's the
> other compiler that needs a beat down. :)
>
> Cheers,
> Brian
>
> On February 25, 2010 12:27:04 pm Wolfgang Westphal wrote:
> > 01 RESULT-1 PIC 9(6).99.
> > COMPUTE RESULT-1 ROUNDED = 46956.93 / 24 + 5308.00 / 24
> > DISPLAY RESULT-1
> >
> > OPEN COBOL displays 002177.71
> > mainframe displays 002177.70
>
> ---------------------------------------------------------------------------
> --- Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
>
http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> open-cobol-list mailing list
>
address@hidden
>
https://lists.sourceforge.net/lists/listinfo/open-cobol-list
>
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
open-cobol-list mailing list
address@hidden
https://lists.sourceforge.net/lists/listinfo/open-cobol-list