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

Method get

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

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

(final float value)

Source from the content-addressed store, hash-verified

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

Callers 10

itemMethod · 0.95
itemMethod · 0.95
itemAtMethod · 0.95
getMethod · 0.95
absMethod · 0.95
ceilingMethod · 0.95
floorMethod · 0.95
roundMethod · 0.95
castMethod · 0.95
readMethod · 0.95

Calls 1

isNaNMethod · 0.80

Tested by

no test coverage detected