473,610 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What is that for a value, -1.#IND00?

Hi

I have a little problem to check a double value. During a multiplication
with really small values my result value is set to -1.#IND00. So does anyone
knows how I can check the value if it is -1.#IND00? Is there a constant to
compare it with? And bye the way, what does this value mean?

Thanks for any help

Thorsten
Feb 1 '06 #1
4 16068
OK found the problem. It is a division with 0. But anyway is there a
constant to check the result value?

Cheers
Thorsten
"Thorsten" <TK***@gmx.de > wrote in message
news:uH******** ******@TK2MSFTN GP09.phx.gbl...
Hi

I have a little problem to check a double value. During a multiplication
with really small values my result value is set to -1.#IND00. So does
anyone knows how I can check the value if it is -1.#IND00? Is there a
constant to compare it with? And bye the way, what does this value mean?

Thanks for any help

Thorsten

Feb 1 '06 #2
Thorsten wrote:
OK found the problem. It is a division with 0. But anyway is there a
constant to check the result value?


This is a NaN (Not a Number), used to represent arithmetic errors such as
divisions by zero. There are various functions to check for a NaN, depending
on your environment. In .NET, Double.IsNaN is the most obvious. An
interesting property of NaN, is that it isn't equal to anything, evn to
itself

Arnaud
MVP - VC
Feb 1 '06 #3
Thanks for the info with NaN. I have found a function (_isnan) or the NAN
definition to check if it is not a number in native C. But anyway I have
change my program so that it will not happent again.

Cheers
Thorstren


"Arnaud Debaene" <ad******@clu b-internet.fr> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
Thorsten wrote:
OK found the problem. It is a division with 0. But anyway is there a
constant to check the result value?


This is a NaN (Not a Number), used to represent arithmetic errors such as
divisions by zero. There are various functions to check for a NaN,
depending on your environment. In .NET, Double.IsNaN is the most obvious.
An interesting property of NaN, is that it isn't equal to anything, evn to
itself

Arnaud
MVP - VC

Feb 1 '06 #4

Thorsten wrote:
*OK found the problem. It is a division with 0. But anyway is there
a
constant to check the result value?
*


-1.#IND00 is repsentation of NaN(Not a Number) value. You may check it
with following function

int _isnan(double x);

from float.h. It returns a nonzero value if the argument x is a NAN;
otherwise it returns 0.

--
Anatoly
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Feb 1 '06 #5

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

Similar topics

5
7474
by: Dave Rahardja | last post by:
I've tried looking this topic up in the standard manual but came up empty... 1. What is the value of an unsigned integral type after it is decremented below zero? 2. What is the value of an unsigned integral type after it is incremented past its maximum value? 3. What is the value of a signed integral type after it is decremented below
0
1723
by: anonieko | last post by:
Add a reference to log4net.dll 1: In the APP.CONFIG write the following: <?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <section name="log4net" type="System.Configuration.IgnoreSectionHandler" /> </configSections>
7
1897
by: Fendi Baba | last post by:
The function is called from opencalendar(targetfield). Thanks for any hints on what could be the problem. .............................................................. var decimalPointDelimiter = ".";
6
2016
by: Rtritell | last post by:
Please can you find out what's wrong, fix the script and tell me what was wrong. Im just beginning <html> <head> <title>Random Mad Lib!</title> <script language="JavaScript"> <!-- Hide
1
1285
by: Jassim Rahma | last post by:
I am getting this error and i Don'r know where is the problem? please help.. An unhandled exception of type 'VistaDB.VistaDBException' occurred in vistadb.provider.dll Additional information: Error in dll_sql_ExecSQL Error code: 546 Parameter not found in the list of params Error code: 610 OpenSQL: Error:546
3
3397
by: keithb | last post by:
What can I put in a stored procedure to control what gets returned by command.ExecuteNonQuery()? I already tried this: param = comm.CreateParameter(); param.ParameterName = "@Success"; param.Value = Convert.ToInt32(1); param.DbType = DbType.Int32;
8
1407
by: Thaqalainnaqvi | last post by:
Several times I logged-in successfully but after log-in I can't use features/services which were shown prior to my login. Can anyone exoert from this forum check , is it technical fault of Bank Web Site or this problem pertaining to the user(me). <HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <META Http-Equiv="Cache-Control" Content="no-cache">
3
2213
by: Teeravee Sirinapasawasdee | last post by:
I found this method code in Enterprise Library 2.0 and I really don't have idea what does it mean. public virtual void SetParameterValue(DbCommand command, string parameterName, object value) { command.Parameters.Value = (value == null) ? DBNull.Value : value; } In my guess, the "(value == null) ? DBNull.Value : value" means if "value"
1
1006
by: shapper | last post by:
Hello, Let me explain it better. What I need is to make something like: Dim mc as MyControl mc.Value = "Hello" This would create a MyControl instance and would set the TextBox.Text = "Hello"
0
8146
marktang
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, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8096
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,...
0
8591
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8558
jinu1996
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...
0
8411
tracyyun
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...
0
5526
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();...
0
4037
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...
1
1691
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1407
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.