public class icFormat
extends java.lang.Object
Constructor and Description |
---|
icFormat(iConomy plugin,
icConsole Console)
Create new iConomy-Format-Object
|
Modifier and Type | Method and Description |
---|---|
long |
formatToLong(float amounth)
Format money from Float to Long
|
long |
formatToLong(java.lang.String amounth)
Format money from String to Long.
|
java.lang.String |
formatToString(float amounth)
Format the money form Float to String
|
java.lang.String |
formatToString(long amounth)
Format the money from Long to String
|
java.lang.String |
formatToString(java.lang.String amounth)
Format the money to String - set decimal
|
public long formatToLong(java.lang.String amounth) throws java.lang.NumberFormatException
amounth
- The amounth of money as Stringjava.lang.NumberFormatException
public long formatToLong(float amounth)
amounth
- The amounth of money as Floatpublic java.lang.String formatToString(long amounth)
amounth
- The amounth of money as Longpublic java.lang.String formatToString(float amounth)
amounth
- The amounth of money as Floatpublic java.lang.String formatToString(java.lang.String amounth) throws java.lang.NumberFormatException
amounth
- The amounth of money as Stringjava.lang.NumberFormatException