Constructor Float(double value)
Member of: java.lang.Float
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 validateData("testFloatElement",elemData,new Float(1.23));
2 assertTrue("Test isInRange()", fr.isInRange(new Float(8.5)));
3 assertTrue("Test isInRange()", !lr.isInRange(new Float(5.2)));
4 arrayList.add(new Float(number.doubleValue()));
5 validate(new Float(1.0), NumberEncoder.class);
6 return new Float(((x & 0xFFFFFFFC) >> 2) * (x100 ? 0.01 : 1));
7 return new Float(0.0);
8 Float number= new Float(Math.pow(10, fCachedNumberOfDigits) - 1);
9 (new Float(Math.toRadians
10 assertEquals("1.1", c.valueAsString(new Float(1.1)));
11 assertTrue("Correct float property", (new Float(5.1)).equals(tb.getMyFloat()));
12 new Float(11.1),
13 data.add("one"); data.add(new Integer(2)); data.add(new Float(4.0));
14 speedLengthBox.addItem(new Float(1.0));
15 m_columnWidths.add(new Float(0.0)); // for the data column
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.