com.marklogic.xcc.types

## Interface NumberNode

- All Superinterfaces:
    JsonItem, XdmItem, XdmNode, XdmValue

      public interface NumberNode
      extends XdmNode, JsonItem

  Interface for JSON number node.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.math.BigDecimal` | `asBigDecimal()`
    `double` | `asDouble()`

    - ### Methods inherited from interface com.marklogic.xcc.types.XdmNode

      `asW3cNode, asW3cNode`

    - ### Methods inherited from interface com.marklogic.xcc.types.JsonItem

      `asJsonNode, asJsonNode`

    - ### Methods inherited from interface com.marklogic.xcc.types.XdmItem

      `asInputStream, asReader, getItemType, isCached, writeTo, writeTo`

    - ### Methods inherited from interface com.marklogic.xcc.types.XdmValue

      `asString, getValueType`

- - ### Method Detail

    - #### asDouble

          double asDouble()

      Returns:
        The value of this item as a double.

    - #### asBigDecimal

          java.math.BigDecimal asBigDecimal()

      Returns:
        The value of this item as a BigDecimal.

Copyright © 2025 MarkLogic Corporation

Complete online documentation for MarkLogic Server, XQuery and related components may be found at docs.progress.com