com.bigdata.rdf.internal
Class XPathMathFunctions

java.lang.Object
  extended by com.bigdata.rdf.internal.XPathMathFunctions

public class XPathMathFunctions
extends Object

Support for the picky xpath math functions: abs, ceiling, floor, and round.

Version:
$Id: XPathMathFunctions.java 5145 2011-09-07 14:32:06Z thompsonbry $ FIXME Implement correct version of xpath math functions with test suite.
Author:
Bryan Thompson

Constructor Summary
XPathMathFunctions()
           
 
Method Summary
static IV abs(IV iv)
           
static IV ceiling(IV iv)
          Returns the smallest (closest to negative infinity) number with no fractional part that is not less than the value of $arg.
static IV floor(IV iv)
           
static IV round(IV iv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathMathFunctions

public XPathMathFunctions()
Method Detail

abs

public static final IV abs(IV iv)

ceiling

public static final IV ceiling(IV iv)
Returns the smallest (closest to negative infinity) number with no fractional part that is not less 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 result is the same as the type of $arg. If the type of $arg is a type derived from one of the numeric types, the result is an instance of the base numeric type. For xs:float and xs:double arguments, if the argument is positive zero, then positive zero is returned. If the argument is negative zero, then negative zero is returned. If the argument is less than zero and greater than -1, negative zero is returned.

See Also:
http://www.w3.org/TR/xpath-functions/#func-ceiling

floor

public static final IV floor(IV iv)

round

public static final IV round(IV iv)


Copyright © 2006-2012 SYSTAP, LLC. All Rights Reserved.