From: Mike C. <MF...@uk...> - 2009-02-27 16:49:42
|
David Ashley <dav...@gm...> wrote on 27/02/2009 15:43:46: > And I have NEVER agreed with the readability argument. My programs > have way too many instances where the readability limit places far > too many limitations on my math calculations. I much prefer precise > results over the surprise factor of loosing digits unexpectedly. > Therefore I am constantly placing a NUMERIC DIGITS 14 at various > places in my programs. Whether you agree with it or not, that was the reasoning, honest! :-) Remember, Rexx was written for people who were not assumed to be mathematicians. For most people, an 8-digit calculator is precise enough. A third option would be to say 'yes make a language change' (which would be in all implementations). But on thinking about it, if doing that (with potential for breakage) it would also make sense to change the arithmetic to be IEEE 754 .. and hence a sensible default digits would be 16 (and limited exponent range to match). The OPTIONS instruction/directive approach at least means no breakage, which is generally a Good Thing. Mike Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU |