Date: Tue, 18 Nov 1997 15:03:30 +0000 From: Ruslan Shevchenko <Ruslan@Shevchenko.kiev.ua> To: uwp@ukrv.de Cc: questions@freebsd.org Subject: Re: How to convert big integers in C ? Message-ID: <3471AE41.5196BD18@Shevchenko.kiev.ua> References: <199711172013.VAA10398@low-tech.ukrv.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Udo Wolter wrote: > Hi ! > > I have a problem. I'm trying to convert a very big number (much bigger than > 64 bit) from hex or decimal base into a 36-base (which means, last > character is a Z instead of an F in the hexadecimal system). I also need > to reconvert this number to decimal or hex. > > I looked at the sources of dc and bc and couldn't find out how they're > doing it, so maybe someone can tell me how to do it in C. > > I want to avoid using doubles because of rounding errors and what I could > see in dc ? bc, these programs also don't use double for it. So how to do it ? > > Can anyone help me ? > /usr/include/g++/Unteger.h > Thanx, > Udo > -- > Udo Wolter, email: uwp@cs.tu-berlin.de > !!! LOW-TECH Page: http://LOW-TECH.home.ml.org !!!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3471AE41.5196BD18>