com.liferay.util
Class NumberFormatUtil

java.lang.Object
  extended by com.liferay.util.NumberFormatUtil

public final class NumberFormatUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
NumberFormatUtil()
           
 
Method Summary
static java.lang.String format(java.text.NumberFormat nf, double number, double defaultValue)
           
static java.lang.String format(java.text.NumberFormat nf, float number, float defaultValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberFormatUtil

public NumberFormatUtil()
Method Detail

format

public static java.lang.String format(java.text.NumberFormat nf,
                                      double number,
                                      double defaultValue)

format

public static java.lang.String format(java.text.NumberFormat nf,
                                      float number,
                                      float defaultValue)