473,326 Members | 2,680 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

What does "-1.#J" mean?

Hello all,

I am using C++ to convert a certain file into an XML file. During the
conversion the program does some arithmetic operations on the
information that is then outputted in xml format. The information is
a double variable.

Usually the output is exactly what it should be, but every so often
the output is "-1.#J".

"-1.#I" (thats an i) means the value is infinite right?
So does anyone know what "-1.#J" means?

Is there some site that has all different types of obscure outputs?

As soon as I know what the "J" means I will know what to look for in
my code and should be able to fix it.

TYVM!
~Lightmage
Jun 27 '08 #1
4 5290
Lightmage wrote:
I am using C++ to convert a certain file into an XML file. During the
conversion the program does some arithmetic operations on the
information that is then outputted in xml format. The information is
a double variable.

Usually the output is exactly what it should be, but every so often
the output is "-1.#J".

"-1.#I" (thats an i) means the value is infinite right?
So does anyone know what "-1.#J" means?

Is there some site that has all different types of obscure outputs?

As soon as I know what the "J" means I will know what to look for in
my code and should be able to fix it.
Unfortunately those things are not specified in either C++ or C.
You need to turn to your compiler documentation. See what out of
range numerical outputs they provide. I have not heard of -1.#J
but I've seen something like #INF or some such.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jun 27 '08 #2
On May 1, 1:42 pm, "Victor Bazarov" <v.Abaza...@comAcast.netwrote:
Lightmage wrote:
I am using C++ to convert a certain file into an XML file. During the
conversion the program does some arithmetic operations on the
information that is then outputted in xml format. The information is
a double variable.
Usually the output is exactly what it should be, but every so often
the output is "-1.#J".
"-1.#I" (thats an i) means the value is infinite right?
So does anyone know what "-1.#J" means?
Is there some site that has all different types of obscure outputs?
As soon as I know what the "J" means I will know what to look for in
my code and should be able to fix it.

Unfortunately those things are not specified in either C++ or C.
You need to turn to your compiler documentation. See what out of
range numerical outputs they provide. I have not heard of -1.#J
but I've seen something like #INF or some such.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Thank you for your reply V.

I am using Microsoft Visual Studio .NET 2002.
If you happen to know where I should look or have a link that would be
most helpful.
Thank you for narrowing my search!

~Lightmage
Jun 27 '08 #3
Lightmage wrote:
On May 1, 1:42 pm, "Victor Bazarov" <v.Abaza...@comAcast.netwrote:
>Lightmage wrote:
>>I am using C++ to convert a certain file into an XML file. During
the conversion the program does some arithmetic operations on the
information that is then outputted in xml format. The information
is a double variable.
>>Usually the output is exactly what it should be, but every so often
the output is "-1.#J".
>>"-1.#I" (thats an i) means the value is infinite right?
So does anyone know what "-1.#J" means?
>>Is there some site that has all different types of obscure outputs?
>>As soon as I know what the "J" means I will know what to look for in
my code and should be able to fix it.

Unfortunately those things are not specified in either C++ or C.
You need to turn to your compiler documentation. See what out of
range numerical outputs they provide. I have not heard of -1.#J
but I've seen something like #INF or some such.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask

Thank you for your reply V.

I am using Microsoft Visual Studio .NET 2002.
If you happen to know where I should look or have a link that would be
most helpful.
Thank you for narrowing my search!

~Lightmage
I would probably start in http://msdn2.microsoft.com ... And next
time if your question is MSVC-specific, try

news:microsoft.public.vc.language

Lots of good info there.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jun 27 '08 #4
On May 1, 1:51 pm, "Victor Bazarov" <v.Abaza...@comAcast.netwrote:
Lightmage wrote:
On May 1, 1:42 pm, "Victor Bazarov" <v.Abaza...@comAcast.netwrote:
Lightmage wrote:
I am using C++ to convert a certain file into an XML file. During
the conversion the program does some arithmetic operations on the
information that is then outputted in xml format. The information
is a double variable.
>Usually the output is exactly what it should be, but every so often
the output is "-1.#J".
>"-1.#I" (thats an i) means the value is infinite right?
So does anyone know what "-1.#J" means?
>Is there some site that has all different types of obscure outputs?
>As soon as I know what the "J" means I will know what to look for in
my code and should be able to fix it.
Unfortunately those things are not specified in either C++ or C.
You need to turn to your compiler documentation. See what out of
range numerical outputs they provide. I have not heard of -1.#J
but I've seen something like #INF or some such.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Thank you for your reply V.
I am using Microsoft Visual Studio .NET 2002.
If you happen to know where I should look or have a link that would be
most helpful.
Thank you for narrowing my search!
~Lightmage

I would probably start inhttp://msdn2.microsoft.com... And next
time if your question is MSVC-specific, try

news:microsoft.public.vc.language

Lots of good info there.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Thank you very much V!
Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Chris Cioffi | last post by:
I started writing this list because I wanted to have definite points to base a comparison on and as the starting point of writing something myself. After looking around, I think it would be a...
65
by: perseus | last post by:
I think that everyone who told me that my question is irrelevant, in particular Mr. David White, is being absolutely ridiculous. Obviously, most of you up here behave like the owners of the C++...
7
by: Dan V. | last post by:
Situation: I have to connect with my Windows 2000 server using VS.NET 2003 and C# and connect to a remote Linux server at another company's office and query their XML file. Their file may be...
35
by: GTO | last post by:
I do not believe that C# is the future of C++. I also do not believe that adding two thousand new library functions to the standard library is the future of C++. But what is the future of C++? Is...
17
by: Paul | last post by:
HI! I get an error with this code. <SCRIPT language="JavaScript"> If (ifp==""){ ifp="default.htm"} //--></SCRIPT> Basicly I want my iframe to have a default page if the user enters in...
35
by: Sunil | last post by:
Hi all, I am using gcc compiler in linux.I compiled a small program int main() { printf("char : %d\n",sizeof(char)); printf("unsigned char : ...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
37
by: Erick-> | last post by:
hello!! I was looking at some code in C... and saw this "exotic" operator |=. first time with it, what exactky does??? thanks in advance. Erick->
15
by: robert maas, see http://tinyurl.com/uh3t | last post by:
Here's the source: #include <stdio.h> #include <errno.h> main () { char* str = "9999999999"; long long int llin; char* endptr; /* Set by strtoll */ int nch; errno = 0; llin = strtoll(str,...
32
by: Stephen Horne | last post by:
I've been using Visual C++ 2003 for some time, and recently started working on making my code compile in GCC and MinGW. I hit on lots of unexpected problems which boil down to the same template...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.