All Downloads are FREE. Search and download functionalities are using the official Maven repository.

liqp.filters.Ceil Maven / Gradle / Ivy

Go to download

A Java implementation of the Liquid templating engine backed up by an ANTLR grammar.

The newest version!
package liqp.filters;

public class Ceil extends Filter {

    @Override
    public Object apply(Object value, Object... params) {

        if (!super.isNumber(value)) {
            return value;
        }

        return (long)Math.ceil(super.asNumber(value).doubleValue());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy