What is the meaning of the symbol -1.$e+000
? In what category are these kind of things included or with what keywords I can search them?
EDIT: After increasing precision this is what I got:
What is the meaning of the symbol -1.$e+000
? In what category are these kind of things included or with what keywords I can search them?
EDIT: After increasing precision this is what I got:
When you see -1.#INF
, -1.#IND
and similar text for formatted numerical output, you're on Microsoft Visual Studio and you're seeing a special floating-point type that cannot be represented by a number... that is, either infinity or NaN ("not a number").
You can get the variant -1.#J
by specifying precision in printf
, and you can get -1.$
by specifying low precision in iostreams.
The e+000
is just a suffix from scientific notation, indicating an exponent of 0
. It's safely ignored.
On Linux GCC you tend to see the text inf
and nan
instead.