[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
Pete's QBASIC Site Discuss QBasic, Freebasic, QB64 and more 2007-12-09T13:01:55-05:00 http://petesqbsite.com/phpBB3/app.php/feed/topic/2510 2007-12-09T13:01:55-05:00 2007-12-09T13:01:55-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=15867#p15867 <![CDATA[What's the largest possible double number?]]> Statistics: Posted by cha0s — Sun Dec 09, 2007 1:01 pm


]]>
2007-12-03T03:28:23-05:00 2007-12-03T03:28:23-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=15778#p15778 <![CDATA[What's the largest possible double number?]]> represented as an exponent of the number in some cases. This is called
scientific notation for an infinite or very long number, which no Qbasic
program can do.

To print the number to the screen in real terms, use PRINT USING and
only use the digits that you need for accuracy. Really long decimal place
numbers are really kind of stupid to use as they can be rounded off
simply!

PRINT USING " ######.##########", 120/1500

It will not change the real number and can be used in any calculation you need.
Use some kind of rounding method to change the actual number.
Once you get the number from PRINT USING, you can then round it off
with multiplication and division to the accuracy you need in a program.

When a double number is used in a calculation, it will tend to do that when
the actual value is between two values. I made a program once that
would change 11 to 11.001 somehow. Double is kinda funky!

Ted

Statistics: Posted by burger2227 — Mon Dec 03, 2007 3:28 am


]]>
2007-12-02T21:37:47-05:00 2007-12-02T21:37:47-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=15776#p15776 <![CDATA[What's the largest possible double number?]]> Statistics: Posted by Mentat — Sun Dec 02, 2007 9:37 pm


]]>
2007-12-02T21:30:23-05:00 2007-12-02T21:30:23-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=15775#p15775 <![CDATA[Re: What's the largest possible double number?]]>
"d+308" means "times 10 raised to the 308th power."
Right. The letter "d" is used to designate you need double precision to hold this number. It otherwise the same as "e", meaning "exponent".

To directly answer your question: 179769313486231500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Does that help you out?

The problem with representing the number that way is that it implies that more accuracy is known than is.

Example:

1.24e4 means more than 1.24 * 10^4 which is 12400.

It means "A number between 12350 and 12450.

And in Physics is used a lot to indicate the accuracy known.

But in computing, it has lost the accuracy connotion, but instead simply means how the number is stored.

1.24e4 is stored as something like (4)(1240....0) where .... is the amount of significance that can be stored.

Mac

Statistics: Posted by Mac — Sun Dec 02, 2007 9:30 pm


]]>
2007-12-02T21:20:39-05:00 2007-12-02T21:20:39-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=15774#p15774 <![CDATA[What's the largest possible double number?]]> Statistics: Posted by Mentat — Sun Dec 02, 2007 9:20 pm


]]>
2007-12-02T21:14:24-05:00 2007-12-02T21:14:24-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=15773#p15773 <![CDATA[Re: What's the largest possible double number?]]>
But what does the e+308 mean? I don't want precision, I just want a max number.
"d+308" means "times 10 raised to the 308th power."

Statistics: Posted by BDZ — Sun Dec 02, 2007 9:14 pm


]]>
2007-12-02T20:56:27-05:00 2007-12-02T20:56:27-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=15770#p15770 <![CDATA[Re: What's the largest possible double number?]]>
Please don't use e.
How about "d"?

K# DOUBLE
double-precision 64-bit floating-point
Sixteen place accuracy, Max = 1.797693134862315D+308
But what does the e+308 mean? I don't want precision, I just want a max number.

Statistics: Posted by Mentat — Sun Dec 02, 2007 8:56 pm


]]>
2007-12-02T20:33:12-05:00 2007-12-02T20:33:12-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=15769#p15769 <![CDATA[Re: What's the largest possible double number?]]>
Please don't use e.
How about "d"?

K# DOUBLE
double-precision 64-bit floating-point
Sixteen place accuracy, Max = 1.797693134862315D+308

Statistics: Posted by Mac — Sun Dec 02, 2007 8:33 pm


]]>
2007-12-02T17:54:36-05:00 2007-12-02T17:54:36-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=15768#p15768 <![CDATA[What's the largest possible double number?]]> Statistics: Posted by Mentat — Sun Dec 02, 2007 5:54 pm


]]>