|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pixelmed.utils.FloatFormatter
public class FloatFormatter
Various static methods helpful for formatting floating point values.
| Method Summary | |
|---|---|
static double[] |
fromString(String s,
char delimChar)
Extract an arbitrary number of delimited numeric values from a string into an array of doubles. |
static double[] |
fromString(String s,
int wanted,
char delimChar)
Extract a specified number of delimited numeric values from a string into an array of doubles. |
static String |
toString(double value)
Given a double value, return a string representation without too many decimal places. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String toString(double value)
Given a double value, return a string representation without too many decimal places.
value - the value to format into a string
public static final double[] fromString(String s,
int wanted,
char delimChar)
Extract a specified number of delimited numeric values from a string into an array of doubles.
s - the string containing delimited double valueswanted - the number of double values wanteddelimChar - the delimiter character
public static final double[] fromString(String s,
char delimChar)
Extract an arbitrary number of delimited numeric values from a string into an array of doubles.
s - the string containing delimited double valuesdelimChar - the delimiter character
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||