// Path: humanize-taglib/src/main/java/humanize/taglibs/util/Convert.java
// public static Number asNumber(Object input) throws JspException
// {
// 
//     if (input instanceof String)
//     {
//         try
//         {
//             String istr = (String) input;
//             return (istr.indexOf('.') != -1) ? Double.valueOf(istr) : Long.valueOf(istr);
//         } catch (NumberFormatException nfe)
//         {
//             throw new JspException(Resources.getMessage("FORMAT_NUMBER_PARSE_ERROR", input), nfe);
//         }
//     }
// 
//     return (Number) input;
// 
// }


import static humanize.taglibs.util.Convert.asNumber;
import javax.servlet.jsp.JspException;
package org.apache.taglibs.standard.tag.common.fmt;



public abstract class NumberCallSupport extends HumanizeSupport
{

    private static final long serialVersionUID = 4926940370084394075L;

    private Object value;

    protected Number input;

    public void setValue(Object value)
    {

        this.value = value;

    }

    @Override
    protected void begin() throws JspException
    {

        Object tmp = value == null ? inputFromBody() : value;
// Path: humanize-taglib/src/main/java/humanize/taglibs/util/Convert.java
// public static Number asNumber(Object input) throws JspException
// {
// 
//     if (input instanceof String)
//     {
//         try
//         {
//             String istr = (String) input;
//             return (istr.indexOf('.') != -1) ? Double.valueOf(istr) : Long.valueOf(istr);
//         } catch (NumberFormatException nfe)
//         {
//             throw new JspException(Resources.getMessage("FORMAT_NUMBER_PARSE_ERROR", input), nfe);
//         }
//     }
// 
//     return (Number) input;
// 
// }


// Path: humanize-taglib/src/main/java/org/apache/taglibs/standard/tag/common/fmt/NumberCallSupport.java
import static humanize.taglibs.util.Convert.asNumber;
import javax.servlet.jsp.JspException;

package org.apache.taglibs.standard.tag.common.fmt;



public abstract class NumberCallSupport extends HumanizeSupport
{

    private static final long serialVersionUID = 4926940370084394075L;

    private Object value;

    protected Number input;

    public void setValue(Object value)
    {

        this.value = value;

    }

    @Override
    protected void begin() throws JspException
    {

        Object tmp = value == null ? inputFromBody() : value;
        this.input = asNumber(tmp);