C
Chris Fonnesbeck
I have been developing a python module for Markov chain Monte Carlo
estimation, in which I frequently compare variable values with a very
large number, that I arbitrarily define as:
inf = 1e10000
However, on Windows (have tried on Mac, Linux) I get the following behaviour:
1.0
while I would have expected:
1.#INF
Smaller numbers, as expected, yield:
1e+100
Obviously, I cannot use the former to compare against large (but not
infinite) numbers, at least not to get the result I expect. Has anyone
seen this behaviour?
Thanks,
Chris
estimation, in which I frequently compare variable values with a very
large number, that I arbitrarily define as:
inf = 1e10000
However, on Windows (have tried on Mac, Linux) I get the following behaviour:
1.0
while I would have expected:
1.#INF
Smaller numbers, as expected, yield:
1e+100
Obviously, I cannot use the former to compare against large (but not
infinite) numbers, at least not to get the result I expect. Has anyone
seen this behaviour?
Thanks,
Chris