|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsky.util.FormatUtilities
public class FormatUtilities
This is an all-static class that contains methods are generic in value and related to format objects.
This code was developed by NASA, Goddard Space Flight Center, Code 588 for the Scientist's Expert Assistant (SEA) project for Next Generation Space Telescope (NGST).
Constructor Summary | |
---|---|
FormatUtilities()
|
Method Summary | |
---|---|
static String |
formatDouble(double inVal,
int inDecs)
Formats a double value to specified number of decimal places, including using scientific notation if appropriate. |
static String |
formatDouble(double inVal,
int inDecs,
int inLeftOfDec)
Formats a double value to specified number of decimal places, including using scientific notation if appropriate. |
static void |
writeError(Object source,
Object message)
Display a simple error message to System.err |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FormatUtilities()
Method Detail |
---|
public static void writeError(Object source, Object message)
public static String formatDouble(double inVal, int inDecs)
inVal
- double number to be formattedinLeftOfDec
- integer of max number of places to left of decimalpublic static String formatDouble(double inVal, int inDecs, int inLeftOfDec)
inVal
- double number to be formattedinDecs
- integer of number of decimal placesinLeftOfDec
- integer of max number of places to left of decimal
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |