Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Nov 1997 21:13:08 +0100 (CET)
From:      Udo Wolter <uwp@ukrv.de>
To:        questions@freebsd.org
Subject:   How to convert big integers in C ?
Message-ID:  <199711172013.VAA10398@low-tech.ukrv.de>

next in thread | raw e-mail | index | archive | help
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 ?

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?199711172013.VAA10398>