railo.runtime.functions.displayFormatting
Class NumberFormat

java.lang.Object
  extended by railo.runtime.functions.displayFormatting.NumberFormat
All Implemented Interfaces:
Serializable, Function

public final class NumberFormat
extends Object
implements Function

Formats a Number by given pattern

See Also:
Serialized Form

Constructor Summary
NumberFormat()
           
 
Method Summary
static String call(PageContext pc, Object object)
           
static String call(PageContext pc, Object object, String mask)
           
static double toNumber(PageContext pc, Object object)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberFormat

public NumberFormat()
Method Detail

call

public static String call(PageContext pc,
                          Object object)
                   throws PageException
Parameters:
pc -
object -
Returns:
formated number
Throws:
ExpressionException
PageException

call

public static String call(PageContext pc,
                          Object object,
                          String mask)
                   throws PageException
Parameters:
pc -
object -
mask -
Returns:
formated number
Throws:
ExpressionException
PageException

toNumber

public static double toNumber(PageContext pc,
                              Object object)
                       throws PageException
Throws:
PageException


Copyright © 2012 Railo