KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > NaNTest


1 public class NaNTest {
2
3     public float fx = Float.NaN;
4
5     public static void main(String JavaDoc [] args){
6         NaNTest n = new NaNTest();
7         n.run();
8     }
9
10     public void run(){
11         boolean b = 0 < fx;
12         System.out.println(!b);
13         System.out.println(fx);
14     }
15 }
16
Popular Tags