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

Re: [GNU-COBOL] math library



When last we left our heros, they were speaking of:
> 	I running into some difficulties with this math stuff,
> and I am also beginning to worry about whether or not this
> library even has enough functionality for us.  My main concern now
> is the near impossibility of rewriting the truncation function.  I have
> tried several methods and I am totally out of ideas.   
> 
> 	Does anyone have an idea how I cam emulate the function
> trunc(n) using only add, subtract, multiply, divide, and modulus division?
> (exponentials are usable too).  The library does no rounding (contrary to
> the docmentation), and that was the key element of my first plan.

	Matt - Enlighten me as to the functionality of the trunc(n) function 
before I say something stupid and have to put my foot in my mouth.  Are we
talking truncating floating point numbers in C?  If so, that's easy.  But
give me more details before I make that a definitive statement.

								JF

-- 
Justin Ferguson - CS  "Good morning, how are you, I'm Doctor Worm...I'm 
jferg@usgs.gov        interested in things...I'm not a real Doctor but I
jferg@acm.org         am a real worm..."
jferg@umr.edu                             - They Might Be Giants, "Dr. Worm"

--
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.