[futurebasic] Re: [FB] Test for NAN(004)

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 2008 : Group Archive : Group : All Groups

From: Brian Stevens <bstevens33@...>
Date: Mon, 1 Dec 2008 12:42:37 -0700
On Dec 1, 2008, at 6:44 AM, Pierre Zippi wrote:

> Is there a way to test for NAN(004)? (in FB4.3.3)
> e.g.
> IF VAL(A$)=NAN(004) THEN A=0


Maybe overlooking something but I'm not aware of any built-in FB  
functions for testing for overflow/underflow  in floating point  
calculations that result in NAN ( not a number ). There are NAN  
functions in the C math utilities ( including isnan() among several )  
which are accessible via FB5 ( i.e. FBtoC ).


Brian S