Page 1 of 1

big variables with a bigger precision

Posted: Fri Jan 03, 2003 8:44 pm
by Guest
I'm searching for very big primes and I need variables with a bigger precision then 16 digits(Double).
A double is a variable from  2,2e-308 to 1,8e308, but when you make a double with more then 16 digits(let's say 23), Qb just rounds the last 7 digits down.
I type:
12345678901234567890123
Qb changes it into:
1,234567890123456 * 10^23 , which means:
12345678901234560000000
see the difference? That's why I need a variable with a bigger precision. How do I make such a thing?

Rincewind

Re: big variables with a bigger precision

Posted: Wed Jan 08, 2003 9:38 am
by Guest
compiling your program should do the trick:

http://relsoft.wrq.cjb.net//files/3dfix.bas

Re: big variables with a bigger precision

Posted: Thu Jan 09, 2003 10:12 pm
by Jehovah
depending on the way your program works, you could just use two different veriables.