001    /**
002     * Implements the CFML Function log10
003     */
004    package railo.runtime.functions.math;
005    
006    import railo.runtime.PageContext;
007    import railo.runtime.exp.ExpressionException;
008    import railo.runtime.ext.function.Function;
009    
010    public final class Log10 implements Function {
011            public static double call(PageContext pc , double number) throws ExpressionException {
012                    if(number<=0) throw new ExpressionException("invalid argument at function log10, vale must be a positive number now "+((int)number)+"");
013                    return 0.43429448190325182D * StrictMath.log(number);
014            }
015    }