users@glassfish.java.net

Re: ELSupport source problem

From: <glassfish_at_javadesktop.org>
Date: Fri, 05 Oct 2007 03:13:11 PDT

/**
      * To convert Number other than BigInteger, Double and Float to BigDecimal.
      * @param n the Number to be converted
      * @return converted BigDecimal
      */
     public BigDecimal toBigDecimal(Number n) {
          [b]return (n == null) ? null : new BigDecimal(n.toString());[/b]
     }
[Message sent by forum member 'wizard_' (wizard_)]

http://forums.java.net/jive/thread.jspa?messageID=238600