-1.#INF?

BlitzMax Forums/BlitzMax Beginners Area/-1.#INF?

Ant(Posted 2006) [#1]
Hi I'm decrementing an alpha value, the amount I'm decrementing is based on the the starting alpha value the target alpha adn the time specified to change it in. Here is an output of the values:

DebugLog:Alpha: 0.0561036728
DebugLog:Alpha: 0.0551686101
DebugLog:Alpha: 0.0542491339
DebugLog:Alpha: 0.0533449799
DebugLog:Alpha: 0.0524558984
DebugLog:Alpha: 0.0515816323
DebugLog:Alpha: 0.0507219397
DebugLog:Alpha: 0.0498765744
DebugLog:Alpha: 0.0490452982
DebugLog:Alpha: 0.0482278764
DebugLog:Alpha: 0.0474240780
DebugLog:Alpha: 0.0466336757
DebugLog:Alpha: -1.#INF0000
DebugLog:Alpha: -1.#IND0000
DebugLog:Alpha: -1.#IND0000
DebugLog:Alpha: -1.#IND0000
DebugLog:Alpha: -1.#IND0000
DebugLog:Alpha: -1.#IND0000
DebugLog:Alpha: -1.#IND0000

Obviously the value is going out of an acceptable value, but I wondered what the -1.#INF0000 and -1.#IND0000 are(infinite?). Also confused to why it suddenly jumps from
DebugLog:Alpha: 0.0474240780
DebugLog:Alpha: 0.0466336757

to

DebugLog:Alpha: -1.#INF0000

I can insert an 'if alpha<0.0 then alpha = 0.0 but it produces a noticeable jump.

Can anyone help?
Thanks


Floyd(Posted 2006) [#2]
1.#INF denotes an infinite value.

-1.#IND is NaN. I suppose IND stands for indeterminate.

The most common way to get an infinite result is to divide by zero.
Continuing to calculate with infinite values typically leads to NaN.


Ant(Posted 2006) [#3]
ok cheers