KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > FloatOp


1 public class FloatOp {
2     
3     public static void main(String JavaDoc [] args){
4         System.out.println(-0.0f);
5         System.out.println((""+ Float.NEGATIVE_INFINITY) + -0.0f);
6         float f = -0.0f + 0.0f;
7         String JavaDoc s = "" + f;
8         run(s);
9         float y = f + 0;
10     }
11     
12     public static void run(String JavaDoc s){
13         System.out.println(s);
14     }
15 }
16
Free Books   Free Magazines  
Popular Tags