• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1219
  • Last Modified:

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.
0
panaz
Asked:
panaz
  • 2
1 Solution
 
ozoCommented:
FLT_MAX*FLT_MAX
Inf - Inf
0
 
panazAuthor Commented:
is Inf defined in any header file?
0
 
ozoCommented:
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.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now