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,215 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
"Disruption" is the most feared word for C-level executives these days. They agonize over their industry being disturbed by another player - most likely by startups.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

623 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