Anyone seem this before?

BlitzMax Forums/BlitzMax Programming/Anyone seem this before?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Uh, no, I believe -1.#INF0000 is Infinity. Perhaps what you have come across is Not A Number (NaN in B+/B3D)? Basically you've done some mathematical operation which defies mathematics =] I *think*, but I'm not sure, if you use Integers instead of Floats that your variable will be set to 0 (or, if I'm wrong, a value in the billions:).

You have two options. 1) Find the place in your code that is creating this rogue 'value' and correct your algorithm so that it never happens (ie make sure you aren't do a divide by 0 (which would create Infinity), or a square root of 0 (I'm bad at maths, but it was something like that I think), or some silly thing like that) or 2) before you need to use the variable do a check for If variable=1.#IND0000 Then variable=0 or whatever.

deps:Inifnity is way too big, not way too small. =]