hep.lcd.contrib.util
Class NumStr
java.lang.Object
|
+--hep.lcd.contrib.util.NumStr
- public class NumStr
- extends Object
- Source Code:
- NumStr.java
Method Summary |
static String |
format(double x,
int w,
int d)
static function to format a float into a fixed-width string |
static String |
format(long x,
int w)
static function to format an integer into a fixed-width string |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumStr
public NumStr()
format
public static String format(long x,
int w)
- static function to format an integer into a fixed-width string
- Parameters:
x
- integer to formatw
- width of the field- Returns:
- the formatted string
format
public static String format(double x,
int w,
int d)
- static function to format a float into a fixed-width string
- Parameters:
x
- integer to formatw
- width of the fieldd
- number of places after the decimal point- Returns:
- the formatted string
The LCD Group