Thread: NaN
View Single Post
  #1  
Old 02-09-2011, 12:05 PM
Java Java is offline
Senior Member
 
Join Date: Jun 2009
Posts: 8,402
Default NaN

This program is based upon the quadratic equation. If I enter a negative discriminant it prints NaN instead of "No real solutions". Any help will be appreciated. Why is it printing NaN twice??? What modifications are needed in the code? Please help!!! <div class="codeblock">
__________________
Java
domain name forum
Reply With Quote