gcc "Not a Number" definition changed in RHEL

Solution Verified - Updated -

Issue

gcc "Not a Number" definition has changed from Red Hat Enterprise Linux 4 to Red Hat Enterprise Linux 5 and 6.

float f=sqrt(-1) 

on RHEL 4 results in

f=nan

on RHEL 5 or RHEL 6

f=-nan

Environment

  • Red Hat Enterprise Linux 4
  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.