Re: Log base 2

new topic     » topic index » view thread      » older message » newer message

Julio C. Galaret Viera wrote:
> 
> Look at PowerBasic results (same algorithm):
> 
> 0, 2
> 0, 4
> 0, 8
> 0, 16
> 0, 32
> 0, 64
> -4.33680868994202E-19, 128
> 0, 256"
> 0, 512"
> 0, 1024"
> 0, 2048"
> 0, 4096"
> 0, 8192"
> -8.67361737988404E-19, 16384"
> 0, 32768"
> 0, 65536"
> 0, 131072"
> 0, 262144"
> 0, 524288"
> 0, 1048576"
> 0, 2097152"
> 0, 4194304"
> 0, 8388608"
> 0, 16777216"
> -1.73472347597681E-18, 33554432"
> 0, 67108864"
> 0, 134217728"
> -1.73472347597681E-18, 268435456"
> 0, 536870912"
> 0, 1073741824"
> 1.73472347597681E-18, 2147483648"
> 0, 4294967296"
> 
> Worse!
> 
> JG
That's strange. I always assumed that the hardware for floating point obeyed the
IEEE specifications, and that the software merely used them. It seems not to be
the case, if PowerBasic is run on a PC.
Actually, I was not asking Rob to get out of his way to program this log2 just
for me, only I tried to ask if it could be done easily...
Regards.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu