Revision 43983 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/java/org/gvsig/expressionevaluator/impl/function/numeric/CeilFunction.java
CeilFunction.java | ||
---|---|---|
7 | 7 |
public class CeilFunction extends AbstractFunction { |
8 | 8 |
|
9 | 9 |
public CeilFunction() { |
10 |
super("Numeric", "CEIL", Range.is(1)); |
|
10 |
super("Numeric", "CEIL", Range.is(1), |
|
11 |
"Returns the smallest (closest to negative infinity) double value that is greater than or equal to the argument and is equal to a mathematical integer. Special cases:\n" + |
|
12 |
"- If the argument value is already equal to a mathematical integer, then the result is the same as the argument.\n" + |
|
13 |
"- If the argument is NaN or an infinity or positive zero or negative zero, then the result is the same as the argument.\n" + |
|
14 |
"- If the argument value is less than zero but greater than -1.0, then the result is negative zero.\n" + |
|
15 |
"Note that the value of Math.ceil(x) is exactly the value of -Math.floor(-x).", |
|
16 |
"CEIL({{a}})", |
|
17 |
new String[]{ |
|
18 |
"a - a value." |
|
19 |
}, |
|
20 |
"Double" |
|
21 |
); |
|
11 | 22 |
this.addAlias("CEILING"); |
12 | 23 |
} |
13 | 24 |
|
Also available in: Unified diff