liqp.filters.Ceil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liqp Show documentation
Show all versions of liqp Show documentation
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