comparison java/src/java/lang/Float.d @ 0:6dd524f61e62

add dwt win and basic java stuff
author Frank Benoit <benoit@tionex.de>
date Mon, 02 Mar 2009 14:44:16 +0100
parents
children 712ffca654f3
comparison
equal deleted inserted replaced
-1:000000000000 0:6dd524f61e62
1 module java.lang.Float;
2
3 import java.lang.util;
4
5 class Float : ValueWrapperT!(float) {
6
7 public static float POSITIVE_INFINITY = (1.0f / 0.0f);
8 public static float NEGATIVE_INFINITY = ((-1.0f) / 0.0f);
9 public static float NaN = (0.0f / 0.0f);
10 public static float MAX_VALUE = 3.4028235e+38f;
11 public static float MIN_VALUE = 1.4e-45f;
12 public static int SIZE = 32;
13
14 this( float value ){
15 super(value);
16 }
17 this( String str ){
18 implMissing( __FILE__, __LINE__ );
19 super(0.0);
20 }
21 public float floatValue(){
22 return value;
23 }
24 public static String toString( float value ){
25 implMissing( __FILE__, __LINE__ );
26 return null;
27 }
28 public static float parseFloat( String s ){
29 try{
30 return tango.text.convert.Float.toFloat( s );
31 }
32 catch( IllegalArgumentException e ){
33 throw new NumberFormatException( e );
34 }
35 }
36
37 }