org.ucl.xpath.function
Class FnFloor
java.lang.Object
org.ucl.xpath.function.Function
org.ucl.xpath.function.FnFloor
- public class FnFloor
- extends Function
Returns the largest (closest to positive infinity) number with no fractional part
that is not greater than the value of $arg. If type of $arg is one of the four
numeric types xs:float, xs:double, xs:decimal or xs:integer the type of the return
is the same as the type of $arg. If the type of $arg is a type derived from one
of the numeric types, the type of the return is the base numeric type.
For float and double arguments, if the argument is positive zero (+0), then
positive zero (+0) is returned. If the argument is negative zero (-0), then negative
zero (-0) is returned.
Constructor Summary |
FnFloor()
Constructor for FnFloor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FnFloor
public FnFloor()
- Constructor for FnFloor.
evaluate
public ResultSequence evaluate(java.util.Collection args)
throws DynamicError
- Evaluate arguments.
- Specified by:
evaluate
in class Function
- Parameters:
args
- argument expressions.
- Returns:
- Result of evaluation.
- Throws:
DynamicError
- Dynamic error.
fn_floor
public static ResultSequence fn_floor(ResultSequence arg)
throws DynamicError
- Floor operation.
- Parameters:
arg
- Result from the expressions evaluation.
- Returns:
- Result of fn:floor operation.
- Throws:
DynamicError
- Dynamic error.