|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--game.libraries.general.Conversion
Static class to provide conversion routines.
| Method Summary | |
static float |
fromPercent(java.lang.String percent)
Convert a percentage to a float, rounded to the nearest whole number percent (that is, to the nearest 0.01). |
static java.lang.String |
toPercent(float value)
Convert the data to a printable percentage. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static java.lang.String toPercent(float value)
public static float fromPercent(java.lang.String percent)
throws java.lang.NumberFormatException
java.lang.NumberFormatException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||