Modifier and Type | Field and Description |
---|---|
static Dbl |
NAN
Value "NaN".
|
static Dbl |
ONE
Value "1".
|
static Dbl |
ZERO
Value "0".
|
Modifier and Type | Method and Description |
---|---|
Dbl |
abs()
Returns an absolute value.
|
boolean |
bool(InputInfo ii)
Returns a boolean representation of the value.
|
Dbl |
ceiling()
Returns an ceiling value.
|
double |
dbl()
Returns an double representation of the value.
|
BigDecimal |
dec(InputInfo ii)
Returns a decimal representation of the value.
|
int |
diff(Item it,
Collation coll,
InputInfo ii)
Returns the difference between the current and the specified item.
|
boolean |
eq(Item it,
Collation coll,
StaticContext sc,
InputInfo ii)
Checks the items for equality.
|
Dbl |
floor()
Returns an floor value.
|
float |
flt()
Returns an float representation of the value.
|
static Dbl |
get(byte[] value,
InputInfo ii)
Returns an instance of this class.
|
static Dbl |
get(double value)
Returns an instance of this class.
|
long |
itr()
Returns an integer (long) representation of the value.
|
static double |
parse(byte[] value,
InputInfo ii)
Converts the given token into a double value.
|
Dbl |
round(int scale,
boolean even)
Returns a rounded value.
|
boolean |
sameAs(Expr cmp)
Compares the current and specified expression for equality.
|
protected byte[] |
string()
Returns a string representation of the value.
|
Double |
toJava()
Returns a Java representation of the value.
|
dbl, flt, hash, itr, string, test, toString
atomItem, atomItem, atomSize, atomValue, comparable, description, ebv, equiv, homogeneous, input, item, itemAt, iter, iterable, materialize, plan, score, score, seqType, size, typeId, writeTo, xdmInfo
accept, atomValue, cache, checkUp, compile, copy, count, exprSize, has, inline, isValue, iter, iterator, removable, serialize, serialize, value
atomIter, data, hasFreeVars, indexAccessible, inlineAll, isEmpty, isFunction, isVacuous, markTailCalls, optimize, optimizeEbv, typeCheck, uses, visitAll
public static final Dbl NAN
public static final Dbl ZERO
public static final Dbl ONE
public static Dbl get(double value)
value
- valuepublic static Dbl get(byte[] value, InputInfo ii) throws QueryException
value
- valueii
- input infoQueryException
- query exceptionprotected byte[] string()
ANum
public boolean bool(InputInfo ii)
Item
public long itr()
ANum
public float flt()
ANum
public double dbl()
ANum
public BigDecimal dec(InputInfo ii) throws QueryException
Item
dec
in class Item
ii
- input infoQueryException
- query exceptionpublic Dbl round(int scale, boolean even)
ANum
public boolean eq(Item it, Collation coll, StaticContext sc, InputInfo ii) throws QueryException
Item
eq
in class Item
it
- item to be comparedcoll
- collationsc
- static contextii
- input infoQueryException
- query exceptionpublic int diff(Item it, Collation coll, InputInfo ii) throws QueryException
Item
diff
in class Item
it
- item to be comparedcoll
- query contextii
- input infoQueryException
- query exceptionpublic Double toJava()
Value
public boolean sameAs(Expr cmp)
Expr
public static double parse(byte[] value, InputInfo ii) throws QueryException
value
- value to be convertedii
- input infoQueryException
- query exceptionCopyright © 2005–2015 BaseX Team. All rights reserved.