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 4 5374
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
On May 1, 1:42 pm, "Victor Bazarov" <v.Abaza...@com Acast.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
Lightmage wrote:
On May 1, 1:42 pm, "Victor Bazarov" <v.Abaza...@com Acast.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.
Unfortunatel y 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.langu age
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
On May 1, 1:51 pm, "Victor Bazarov" <v.Abaza...@com Acast.netwrote:
Lightmage wrote:
On May 1, 1:42 pm, "Victor Bazarov" <v.Abaza...@com Acast.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.langu age
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! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 waste of time to
start writing yet another IDE and so am now thinking in terms of new
features/plug-ins for existing systems.
Right now I mostly use Komodo Personal and it's pretty close to being
what I want. They don't currently support plug-ins,...
|
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++ language. A C++ interface
installation IS ABOUT THE C++ LANGUAGE! The language
does not possess the ability to handle even simple file directory
manipulation.
Those wise people that created it did not take care of it. So, BOOST
is a portable...
|
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 updated every hour or so. How can I do this
easily? I would like to use secure communication even encryption if
possible. I would query and insert locally only the newest records found in
that XML file to an xml or MS access db.
|
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 it as good as a programming
language can get?
Like so many of you, I programmed speech recognizers, image recognition
systems, a portion of a chess program, lots of numeric code using STL, and
tons of other applications in C++, (even firmware...
|
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
directly. so I need a way doing this. so I check to see if the ifp value is
null and if so then assign it a value. is this correct?
| |
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 : %d\n",sizeof(unsigned char));
printf("short : %d\n",sizeof(short));
printf("unsigned short : %d\n",sizeof(unsigned short));
printf("int : %d\n",sizeof(int));
|
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 paper written on this
subject.
On the Expressive Power of Programming Languages, by Matthias
Felleisen, 1990.
http://www.ccs.neu.edu/home/cobbe/pl-seminar-jr/notes/2003-sep-26/expressive-slides.pdf
|
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->
|
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, &endptr, 10);
printf("errno=%d\n", errno);
|
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 issue. A
noddy mixin layer example should illustrate the issue...
class Base
{
protected:
int m_Field;
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |