org.apache.poi.ss.formula.eval

## Class NumberEval

- java.lang.Object
- - org.apache.poi.ss.formula.eval.NumberEval

- All Implemented Interfaces:
    NumericValueEval, StringValueEval, ValueEval

      public final class NumberEval
      extends java.lang.Object
      implements NumericValueEval, StringValueEval

  Author:
    Amol S. Deshmukh < amolweb at ya hoo dot com >

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static NumberEval` | `ZERO`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `NumberEval(double value)`
    `NumberEval(Ptg ptg)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `double` | `getNumberValue()`
    `java.lang.String` | `getStringValue()`
    `java.lang.String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### ZERO

          public static final NumberEval ZERO

  - ### Constructor Detail

    - #### NumberEval

          public NumberEval(Ptg ptg)

    - #### NumberEval

          public NumberEval(double value)

  - ### Method Detail

    - #### getNumberValue

          public double getNumberValue()

      Specified by:
        `getNumberValue` in interface `NumericValueEval`

    - #### getStringValue

          public java.lang.String getStringValue()

      Specified by:
        `getStringValue` in interface `StringValueEval`
      Returns:
        never `null`, possibly empty string.

    - #### toString

          public final java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`

Copyright 2020 The Apache Software Foundation or its licensors, as applicable.