#33 add isnan() and isinf()

closed-accepted
nobody
None
5
2011-11-15
2010-10-11
Anonymous
No

When a calculation yields nan or inf, there's no way to catch this. Even comparing a nan value to sqrt(-1) yields false, e.g (sqrt(-1) == sqrt(-1)) is false.

Discussion

  • John Bowman

    John Bowman - 2011-11-15
    • status: open --> closed-accepted
     
  • John Bowman

    John Bowman - 2011-11-15

    Ok, I've added a bool isnan(real) function. No need for isinf; just compare to inf.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks