Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Log formula
#33
Nope. Imagine a single unsigned array that has an unsigned integer in each array cell. Imagine a 4 elments array. The thing is dealing with that array as a whole number, just appending a number at the end of the latter.

With 1 element, as it is an unsigned integer, you could represent from 0 to 65535. With 2 elements, making an imaginary number appending the two array cells in binary, you would have a number from 0 to 65536*65536-1 (this is what is done to build a long: append two ints). With three array cells, you would have a number from 0 to 65536^3-1. And so forth.

If array[0] = 1001110001011111 and array[1] = 1100101000011100, the library acts as it was a big integer 11001010000111001001110001011111.

All ancient big integer math libraries are done that way.

I entered the BCD stuff just to clarify things, but I messed everything up Tongue. What I was comparing to BCD was using strings as numbers like oracle is doing. But BCD is using 4 bits to represent 10 numbers and oracle is using 8 bits, so it is even worse memory-wise.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply


Messages In This Thread
Log formula - by oracle - 08-05-2003, 04:21 AM
Log formula - by Moneo - 08-05-2003, 06:10 AM
Log formula - by Phydaux - 08-05-2003, 07:03 AM
Log formula - by oracle - 08-05-2003, 08:17 AM
Log formula - by Ninkazu - 08-05-2003, 08:20 AM
Log formula - by Phydaux - 08-05-2003, 05:38 PM
Log formula - by Ninkazu - 08-05-2003, 08:07 PM
Log formula - by TheBigBasicQ - 08-05-2003, 11:06 PM
Log formula - by Phydaux - 08-05-2003, 11:15 PM
Log formula - by Antoni Gual - 08-06-2003, 01:56 AM
Log formula - by oracle - 08-06-2003, 09:38 AM
Log formula - by TheBigBasicQ - 08-06-2003, 10:18 PM
Log formula - by Moneo - 08-06-2003, 10:22 PM
Log formula - by oracle - 08-07-2003, 05:48 AM
Log formula - by Moneo - 08-07-2003, 08:07 AM
Log formula - by xhantt - 08-07-2003, 09:24 AM
Log formula - by toonski84 - 08-07-2003, 09:31 AM
Log formula - by TheBigBasicQ - 08-07-2003, 11:32 AM
Log formula - by toonski84 - 08-07-2003, 11:43 AM
Log formula - by SCM - 08-07-2003, 11:45 AM
Log formula - by toonski84 - 08-07-2003, 12:22 PM
Log formula - by SCM - 08-07-2003, 10:58 PM
Log formula - by xhantt - 08-08-2003, 12:01 AM
Log formula - by oracle - 08-11-2003, 08:37 AM
Log formula - by na_th_an - 08-11-2003, 01:48 PM
that's ghey... - by Agamemnus - 08-12-2003, 02:27 AM
Re: that's ghey... - by oracle - 08-12-2003, 03:44 AM
Your welcome, - by SCM - 08-12-2003, 09:23 AM
Log formula - by oracle - 08-12-2003, 10:11 AM
Log formula - by Agamemnus - 08-13-2003, 12:56 AM
Log formula - by na_th_an - 08-13-2003, 05:38 AM
Log formula - by Moneo - 08-13-2003, 05:56 AM
Log formula - by na_th_an - 08-13-2003, 06:16 AM
Log formula - by Agamemnus - 08-13-2003, 06:23 AM
Log formula - by Moneo - 08-13-2003, 06:29 AM
Log formula - by na_th_an - 08-13-2003, 06:48 AM
Log formula - by Moneo - 08-13-2003, 07:27 AM
Log formula - by na_th_an - 08-13-2003, 08:17 AM
Log formula - by Moneo - 08-13-2003, 09:48 PM
Log formula - by na_th_an - 08-14-2003, 12:00 AM
Log formula - by Phydaux - 08-14-2003, 01:43 AM
Log formula - by Agamemnus - 08-14-2003, 01:53 AM
Log formula - by Moneo - 08-14-2003, 02:04 AM
Log formula - by na_th_an - 08-14-2003, 04:02 AM
converting numerical strings to binary - by SCM - 08-14-2003, 09:53 AM
Log formula - by na_th_an - 08-14-2003, 04:45 PM
Log formula - by Agamemnus - 08-15-2003, 01:29 AM
Log formula - by oracle - 08-15-2003, 07:51 AM
Log formula - by xhantt - 08-15-2003, 11:25 PM
Log formula - by oracle - 08-16-2003, 06:56 AM
Log formula - by xhantt - 08-16-2003, 07:44 AM
Log formula - by oracle - 08-16-2003, 08:00 AM
Log formula - by Moneo - 08-16-2003, 08:34 AM
Log formula - by oracle - 08-16-2003, 08:38 AM
Log formula - by xhantt - 08-18-2003, 02:53 AM
Log formula - by oracle - 08-18-2003, 05:00 AM
Log formula - by Ninkazu - 08-18-2003, 05:05 AM
Log formula - by oracle - 08-18-2003, 05:24 AM
Log formula - by Ninkazu - 08-18-2003, 06:53 AM
Log formula - by oracle - 08-18-2003, 11:11 AM
Log formula - by Ninkazu - 08-18-2003, 04:30 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)