Im making a lander game..
And Theres a Line..
Private Fuel as Double
Why isnt it a integer??
Whats a double??
thanks!
Printable View
Im making a lander game..
And Theres a Line..
Private Fuel as Double
Why isnt it a integer??
Whats a double??
thanks!
double is for numbers with floating decimal point. it's even more precise than single
the max value range of integer is -32768 to 32767 while the single's is -3.402823E38 to -1.401298E-45 and the double's is -1.79769313486232E308 to 4.94065645841247E-657 (negative) and 4.94065645841247E-324 to 1.79769313426232E308 (positive). (single can't be zero but a value very near to zero)
[Edited by Razzle on 05-06-2000 at 06:45 PM]
just in case you want that in english a double is a variable that can store decimals, integers and longs can only store whole numbers.
Geezs..lol
Thanks Both of you
your making a game and it was already set as double?
I think you ripped some code off some people :D
or you wouldnt have even used double if you didnt know what it is.... :)
hehe,
good thinking..
I was making the game that is on the
front page of this website.. Called
Lander 3.0. Its really neat.. He used
a ddouble so I asked :)
why can't a Single variable evaluate to 0?
it doesnt seem to protest when I set it to 0!
you can set it to zero and if you read it out it's still zero. but the actual value isn't 0 but 0.0000000000...(somewhere at the end there's a number different from zero).
The difference is SO small, you can't see it so easily
How are they stored if you can't set them to zero, I thought they had an exponent and a mantissa, 00000 for the mantissa would give zero wouldn't it.
I think i had the same problem with double once, multiplying E-12 by 10 up to E0 was differing so little that vb showed 1 but showed x>=1 to be false. So I don't use double for delicate things