001    /**
002     * Implements the CFML Function fix
003     */
004    package railo.runtime.functions.math;
005    
006    import railo.runtime.PageContext;
007    import railo.runtime.ext.function.Function;
008    
009    public final class Fix implements Function {
010            public static double call(PageContext pc , double number) {
011                    if(number==0) return number;
012                    return number >0 ? StrictMath.floor(number) : StrictMath.ceil(number);
013            }
014    }