| Package | Description | 
|---|---|
| java.awt.font | Provides classes and interface relating to fonts. | 
| java.lang | Provides classes that are fundamental to the design of the Java
 programming language. | 
| javax.management.openmbean | Provides the open data types and Open MBean descriptor classes. | 
| Modifier and Type | Field and Description | 
|---|---|
| static Float | TextAttribute. JUSTIFICATION_FULLJustify the line to the full requested width. | 
| static Float | TextAttribute. JUSTIFICATION_NONEDo not allow the line to be justified. | 
| static Float | TextAttribute. POSTURE_OBLIQUEThe standard italic posture. | 
| static Float | TextAttribute. POSTURE_REGULARThe standard posture, upright. | 
| static Float | TextAttribute. TRACKING_LOOSEPerform loose tracking. | 
| static Float | TextAttribute. TRACKING_TIGHTPerform tight tracking. | 
| static Float | TextAttribute. WEIGHT_BOLDThe standard bold weight. | 
| static Float | TextAttribute. WEIGHT_DEMIBOLDA moderately lighter weight than  WEIGHT_BOLD. | 
| static Float | TextAttribute. WEIGHT_DEMILIGHTAn intermediate weight between  WEIGHT_LIGHTandWEIGHT_STANDARD. | 
| static Float | TextAttribute. WEIGHT_EXTRA_LIGHTThe lightest predefined weight. | 
| static Float | TextAttribute. WEIGHT_EXTRABOLDAn extra heavy weight. | 
| static Float | TextAttribute. WEIGHT_HEAVYA moderately heavier weight than  WEIGHT_BOLD. | 
| static Float | TextAttribute. WEIGHT_LIGHTThe standard light weight. | 
| static Float | TextAttribute. WEIGHT_MEDIUMAn intermediate weight between  WEIGHT_REGULARandWEIGHT_BOLD. | 
| static Float | TextAttribute. WEIGHT_REGULARThe standard weight. | 
| static Float | TextAttribute. WEIGHT_SEMIBOLDA moderately heavier weight than  WEIGHT_REGULAR. | 
| static Float | TextAttribute. WEIGHT_ULTRABOLDThe heaviest predefined weight. | 
| static Float | TextAttribute. WIDTH_CONDENSEDThe most condensed predefined width. | 
| static Float | TextAttribute. WIDTH_EXTENDEDThe most extended predefined width. | 
| static Float | TextAttribute. WIDTH_REGULARThe standard width. | 
| static Float | TextAttribute. WIDTH_SEMI_CONDENSEDA moderately condensed width. | 
| static Float | TextAttribute. WIDTH_SEMI_EXTENDEDA moderately extended width. | 
| Modifier and Type | Field and Description | 
|---|---|
| static Class<Float> | Float. TYPEThe  Classinstance representing the primitive typefloat. | 
| Modifier and Type | Method and Description | 
|---|---|
| static Float | Float. valueOf(float f)Returns a  Floatinstance representing the specifiedfloatvalue. | 
| static Float | Float. valueOf(String s)Returns a  Floatobject holding thefloatvalue represented by the argument strings. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | Float. compareTo(Float anotherFloat)Compares two  Floatobjects numerically. | 
| Modifier and Type | Field and Description | 
|---|---|
| static SimpleType<Float> | SimpleType. FLOATThe  SimpleTypeinstance describing values whose
 Java class name isjava.lang.Float. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.