|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.util.Format
public final class Format
Provides the ability for Encog to format numbers and times.
| Field Summary | |
|---|---|
static int |
SECONDS_INA_DAY
Seconds in a day. |
static int |
SECONDS_INA_HOUR
Seconds in an hour. |
static int |
SECONDS_INA_MINUTE
Seconds in a minute. |
| Method Summary | |
|---|---|
static java.lang.Object |
formatDouble(double d,
int i)
Format a double. |
static java.lang.String |
formatInteger(int i)
Format an integer. |
static java.lang.String |
formatPercent(double e)
Format a percent. |
static java.lang.String |
formatPercentWhole(double e)
Format a percent with no decimal places. |
static java.lang.String |
formatTimeSpan(int seconds)
Format a time span as seconds, minutes, hours and days. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SECONDS_INA_MINUTE
public static final int SECONDS_INA_HOUR
public static final int SECONDS_INA_DAY
| Method Detail |
|---|
public static java.lang.Object formatDouble(double d,
int i)
d - The double value to format.i - The number of decimal places.
public static java.lang.String formatInteger(int i)
i - The integer to format.
public static java.lang.String formatPercent(double e)
e - The percent to format.
public static java.lang.String formatPercentWhole(double e)
e - The format to percent.
public static java.lang.String formatTimeSpan(int seconds)
seconds - The number of seconds in the timespan.
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||