yes dec2hex again... but this time it is big

00406AAC 35 31 36 30 34 36 34 35 32 36 30 31 32 36 30 35 5160464526012605
00406ABC 33 32 37 38 38 37 39 33 34 33 32 36 33 37 38 32 3278879343263782
00406ACC 36 32 37 36 31 33 36 34 31 35 33 30 38 36 34 37 6276136415308647
00406ADC 36 30 38 34 30 33 34 38 33 32 39 00 00 00 00 00 60840348329.....

l have in the buffer this big decimal value and i want to convert it to base 16.

BASE10:51604645260126053278879343263782627613641530864760840348329
BASE16:83899A2BA6432D6053413186717EFF57126F3AA5FEF2D62A9

anyone can help me out ...thanx.
Posted on 2004-06-26 07:55:59 by vilik
My first suggestion is to first convert the decimal string into a binary string (dividing by two isn't too hard), and then convert the binary string to a hex string by simply assuming each 4-bit nybble in the output produces a hex digit from 0 to F.
My second suggestion is to make multiple calls to your divide-by-two function to produce a divide-by-16 function suitable for producing hex output directly.
Either way, you will require a divide-by-two function which can operate on a giant base10 input and produce a giant base10 byproduct and a resulting bit per iteration.
Posted on 2004-06-26 09:11:59 by Homer
.. 13^11 * 29^11 * 577^11 .. what a strange number ..
Posted on 2004-06-26 12:57:18 by Jibz
it was
217529^11
unfortunately BNlib2 "Public Domain" d'ont play hex.
Posted on 2004-06-29 09:52:42 by vilik
Jibz,

How did you decompose the number so easily? I am impressed.

Regards,
Victor
Posted on 2004-06-29 10:24:57 by roticv