hep.lcd.contrib.util
Class NumStr

java.lang.Object
  |
  +--hep.lcd.contrib.util.NumStr

public class NumStr
extends Object

Source Code:
NumStr.java

Constructor Summary
NumStr()
           
 
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
 

Constructor Detail

NumStr

public NumStr()
Method Detail

format

public static String format(long x,
                            int w)
static function to format an integer into a fixed-width string
Parameters:
x - integer to format
w - 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 format
w - width of the field
d - number of places after the decimal point
Returns:
the formatted string


The LCD Group