Solved

Give examples of floating point arithmetic operations that would produce each of the exceptional values Inf and NaN.

Posted on 2008-09-30
3
1,210 Views
Last Modified: 2013-11-13
Give examples of floating point arithmetic operations that would produce each of the exceptional values: Inf and NaN.
0
Comment
Question by:panaz
  • 2
3 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 22610133
FLT_MAX*FLT_MAX
Inf - Inf
0
 

Author Comment

by:panaz
ID: 22610314
is Inf defined in any header file?
0
 
LVL 84

Accepted Solution

by:
ozo earned 250 total points
ID: 22610451
No, but it can be produced with FLT_MAX*FLT_MAX
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help with OLE and multiple Word documents 8 229
Scrum Planning 2 167
has12 challenge 13 64
fizzArray3  challenge 1 76
Introduction This article discusses the Chain of Responsibility pattern, explaining What it is;Why it is; andHow it is At the end of this article, I hope you will be able to describe the use and benefits of Chain of Responsibility.  Backgrou…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now