# Numeric Display shows NaN for very small number

**URL:** <https://forum.inductiveautomation.com/t/numeric-display-shows-nan-for-very-small-number/74596>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [June 5, 2023, 9:07pm UTC](https://forum.inductiveautomation.com/t/numeric-display-shows-nan-for-very-small-number/74596 "2023-06-05T21:07:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimschaefer](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@jimschaefer](https://forum.inductiveautomation.com/u/jimschaefer)\
**Post date:** [June 5, 2023, 9:07pm UTC](https://forum.inductiveautomation.com/t/numeric-display-shows-nan-for-very-small-number/74596/1 "2023-06-05T21:07:52Z")

</div>

I have a numeric entry field component bound to a float memory tag called "memoryTag05\_float".

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/e/ce028a2dd40c9f65791d3c299377e805172feb33.png)

When the float memory tag has a value of -6.79168362355791e-7 the numeric display shows NaN.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/6/5656a970b7fe493bbe419e10d1762f8cb8d47fb8.png)

When I click in the numeric entry field I can see the value correctly and edit it.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/1/b1639c9eb2d818ce870e141547f72226b9bff390.png)

Since the formatting is set to 0,0.### I would expect the value to be displayed as zero.  
What's going on ? How can I get the component to display a number and not the NaN ?

I changed the formatting to 0,0.############ and it still displays NaN

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [June 5, 2023, 9:17pm UTC](https://forum.inductiveautomation.com/t/numeric-display-shows-nan-for-very-small-number/74596/2 "2023-06-05T21:17:14Z")

</div>

Isn't this the same question as your previous post three days ago - or have I missed something?

> [@Table cell displays NaN for small number (Bug ?)](https://forum.inductiveautomation.com/t/table-cell-displays-nan-for-small-number-bug/74503):
>
> I have linked a dataset to a table in perspective. The table does not show scientific notation. When I enter values is removes the scientific notation. Example: The value in the dataset is 6.9592e-8. The table displays NaN. (see below). When I double click on the field to edit the value I can see the correct value: However, when I enter the value 7.8888e-8 and press enter the value is converted to 7.89 (no scientific notation) result after pressing enter:

---

<div class="post-metadata">

**Author:** ![jimschaefer](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@jimschaefer](https://forum.inductiveautomation.com/u/jimschaefer)\
**Post date:** [June 5, 2023, 9:45pm UTC](https://forum.inductiveautomation.com/t/numeric-display-shows-nan-for-very-small-number/74596/3 "2023-06-05T21:45:51Z")

</div>

No.. first question was for a dataset displayed in a data table. This is for a numeric display component directly bound to a float memory tag.  
But.... similar behavior perhaps.

Thanks

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [June 15, 2023, 1:43pm UTC](https://forum.inductiveautomation.com/t/numeric-display-shows-nan-for-very-small-number/74596/4 "2023-06-15T13:43:33Z")

</div>

I wonder if it's the e that is causing it to see this as Not a Number. Perhaps try an expression binding and manipulate your formatting in the expression.

---

<div class="post-metadata">

**Author:** ![Francisco\_Sorto1](https://avatars.discourse-cdn.com/v4/letter/f/76d3ee/32.png) [@Francisco\_Sorto1](https://forum.inductiveautomation.com/u/Francisco_Sorto1)\
**Post date:** [November 3, 2023, 7:20pm UTC](https://forum.inductiveautomation.com/t/numeric-display-shows-nan-for-very-small-number/74596/5 "2023-11-03T19:20:27Z")

</div>

Did you ever get an answer on this? How you solved it? I have the exact same issue, and I can't use formatting transform because I need it to be bidirectional to the PLC.

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [March 13, 2024, 1:46pm UTC](https://forum.inductiveautomation.com/t/numeric-display-shows-nan-for-very-small-number/74596/6 "2024-03-13T13:46:03Z")

</div>

Any update on this? I am experiencing the same on 8.1.32. Have a numeric entry component value bound to a tag. Two buttons one to increment and decrement the value by .05. Works fine, but when I go from .05 to 0 it ends up as a very small decimal which is fine and expected from float arithmetic, but then the appearance becomes NaN. I know I can code it to write 0 directly if appropriate, but I just wanted it be known this is still an issue.
