I was wondering if there is a piece of code you can use in qb45 that will make it possible to print a number beyond 9,999,999? I noticed that while you can print 10000000, whenever you have a variable that prints the same number, it comes up as: 1E+07
thanks for any help.
exceeding 9,999,999
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact:
like this:
put the # on you variable to keep it from doing scientific notations..
Code: Select all
num# = 10000000
PRINT num#
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
(x.t.r.GRAPHICS)
More specifically, # defines a number as double-precision. Eventually you will hit a point where those go into xE+yy form as well, except it'll say xD+yyy instead.
You could also have done the following:
DIM num AS DOUBLE
or:
DEFDBL N
The first one declares num as a variable of type double. The second one automatically makes any variables starting with the letter N double precision.
You could also have done the following:
DIM num AS DOUBLE
or:
DEFDBL N
The first one declares num as a variable of type double. The second one automatically makes any variables starting with the letter N double precision.
If you need music composed in MP3, WAV, or MIDI format, please contact me via email.
Xerol's Music - Updated Regularly!
Xerol's Music - Updated Regularly!
- Mitth'raw'nuruodo
- Veteran
- Posts: 839
- Joined: Sat Jan 22, 2005 11:04 am
- Location: Eastern Coast of US
- Contact:
re: exeeding 9,999,999
It works! (of course).
you guys rock!
you guys rock!