piclist 2001\06\04\185930a >
Thread: Looking for improved integer's math routines
face BY : Mike Mansheim email (remove spam text)

>  Did you have 64 bit Bin2dec routine.
> I have but it taks much time to execute.

No, but I was able to extend John Payson's 16 bit routine using
Scott Dattalo's excellent explanation of the algorithm, and I'm
no math whiz.  I only needed an extra bit, to fully utilize a
5 digit display.  The coefficient calculations are no longer
highly optimized, but it is still much quicker than the "normal"
(to me) way of doing this.  With a bit of work, it could be
extended to 64 bits.

By the way, 64 bits???  That's a lot of digits!

http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email KILLspamlistservEraseMEspammitvma.mit.edu with SET PICList DIGEST in the body


See also: www.piclist.com/techref/microchip/math/index.htm?key=math
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Looking for improved integer's math routines

month overview.

new search...