[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNU-COBOL] Re: Math Library...




This goes along with my last mail.

I guess you are probably wondering what the variables to
the function mean...since I was a dimwit I didnt comment it properly.

Example call:
emit.c:	rc = emit_truncate_number(string,ptr->length,ptr->num->point);

Define:
emit_impl.c:int emit_truncate_number(char *string,int length,int decimal) ;
emit_impl.h:int emit_truncate_number(char * ,int,int);
char * == name of the variable being truncated
int length == length of the number(total pic lenght)
int decimal ==  see comment below in Number struct defination.
/* Number specific */
struct s_Number {
        double          init ;
        unsigned        point; /* no point(0) ( 0-18) number of digits to
                                * the right of the point
                                * -1 means a variable pt
                                */
};

hope this helps some more..

-- 
Chad Slaughter  -- slaught at umr.edu
<PGP public key available upon request>

--
This message was sent through the gnu-cobol mailing list.  To remove yourself
from this mailing list, send a message to gnu-cobol@acm.cs.umr.edu with the
words "unsubscribe gnu-cobol" in the message body.  For more information on
the GNU COBOL project, send mail to gnu-cobol-owner@acm.cs.umr.edu.