001    /**
002     * Implements the Cold Fusion Function asin
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 ASin implements Function {
011            public static double call(PageContext pc , double number) throws ExpressionException {
012                    if(number>=-1d && number<=1d)
013                            return StrictMath.asin(number);
014                    throw new ExpressionException("invalid range of argument for function aSin, argument range must be between -1 and 1, now is ["+number+"]");
015            }
016    }