MCPcopy Create free account
hub / github.com/BaseXdb/basex / get

Method get

basex-core/src/main/java/org/basex/query/value/item/Dbl.java:45–48  ·  view source on GitHub ↗

Returns an instance of this class. @param value value @return instance

(final double value)

Source from the content-addressed store, hash-verified

43 * @return instance
44 */
45 public static Dbl get(final double value) {
46 return value == 0 && Double.doubleToRawLongBits(value) == 0 ? ZERO : value == 1 ? ONE :
47 Double.isNaN(value) ? NAN : new Dbl(value);
48 }
49
50 @Override
51 public byte[] string() {

Callers 15

numberLitMethod · 0.95
numericLiteralMethod · 0.95
itemMethod · 0.95
optimizeMethod · 0.95
toNumberMethod · 0.95
toStringMethod · 0.95
scoreMethod · 0.95
nextMethod · 0.95
nextMethod · 0.95
itemMethod · 0.95
nextMethod · 0.95
itemMethod · 0.95

Calls 1

isNaNMethod · 0.80

Tested by

no test coverage detected