PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, August 4, 2022

[FIXED] How to detect the non-spurious FE_INEXACT?

 August 04, 2022     c, exception, floating-point, language-lawyer     No comments   

Issue

C11, F.10 allows spurious ‘‘inexact’’ floating-point exception to be raised.

C11, F.10 Mathematics <math.h>, 9 (emphasis added):

Whether or when library functions raise an undeserved ‘‘underflow’’ floating-point exception is unspecified.372) Otherwise, as implied by F.8.6, the <math.h> functions do not raise spurious floating-point exceptions (detectable by the user), other than the ‘‘inexact’’ floating-point exception.

If <math.h> functions may raise spurious FE_INEXACT, then how to detect the non-spurious FE_INEXACT?


Solution

Answer from Fred J. Tydeman (Vice-chair of PL22.11 (ANSI "C")):

Q: Does it mean that the C Standard provides no reliable way to detect the non-spurious FE_INEXACT?

A: Correct.



Answered By - pmor
Answer Checked By - Robin (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing