On Mon, 2007-09-10 at 03:19 +1000, skaller wrote:
> I have modified the configuration checks for NaN et al.
> Felix now provides isnan, isinf, and isfinite for floating types.
> 
> THIS NEEDS TESTING ON NON LINUX PLATFORMS!

This program:

///////////////////////////////////////
#import <flx.flxh>

println 1.0;
println (1.0/0.0);
println (-1.0/0.0);
println (0.0/0.0);
println (isfinite 0.0);
println (isfinite (1.0/0.0));
//////////////////////////////////////

should print:

1
+inf
-inf
nan
true
false

on all platforms including Windows and OSX .. but I have only
tested it on Linux.

-- 
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to