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

Give examples of floating point arithmetic operations that would produce each of the exceptional values: Inf and NaN.
panazAsked:
Who is Participating?
 
ozoCommented:
No, but it can be produced with FLT_MAX*FLT_MAX
0
 
ozoCommented:
FLT_MAX*FLT_MAX
Inf - Inf
0
 
panazAuthor Commented:
is Inf defined in any header file?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.