For Programmers: Free Programming Magazines  


Home > Archive > Cobol > May 2005 > Re: REDEFINES in Micro Focus NetExpress 4









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: REDEFINES in Micro Focus NetExpress 4
epc8@juno.com

2005-05-06, 3:55 pm

What would FUNCTION NUMVAL(AFLD) do with a trailing minus sign?

Chuck Stevens

2005-05-06, 3:55 pm

According to both the Intrinsic Function Amendment to the '85 standard and
to the 2002 standard, the answer is "accept it".

The two formats allowed are
[space-string] [+ / -] [space-string] {digit [.[digit]] / . digit]}
[space-string]

and
[space-string] {digit [.[digit]] / .digit } [space-string] [+ / - / CR /
DB] [space-string]

See ANSI X3.23a-1989, American National Standard for Information Systems --
Programming Language -- Intrinsic Function Module for COBOL page A-59 and
ISO/IEC 1989:2002(E) , International Standard -- Information technology --
Programming languages -- COBOL page 623.

-Chuck Stevens

<epc8@juno.com> wrote in message
news:1115226002.430325.21130@g14g2000cwa.googlegroups.com...
> What would FUNCTION NUMVAL(AFLD) do with a trailing minus sign?
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com