# BUG - Perspective Numeric Entry Field as unicode

**URL:** <https://forum.inductiveautomation.com/t/bug-perspective-numeric-entry-field-as-unicode/37173>\
**Category:** Ignition\
**Created:** [July 29, 2020, 1:01am UTC](https://forum.inductiveautomation.com/t/bug-perspective-numeric-entry-field-as-unicode/37173 "2020-07-29T01:01:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![victor1](https://avatars.discourse-cdn.com/v4/letter/v/6de8d8/32.png) [@victor1](https://forum.inductiveautomation.com/u/victor1)\
**Post date:** [July 29, 2020, 1:01am UTC](https://forum.inductiveautomation.com/t/bug-perspective-numeric-entry-field-as-unicode/37173/1 "2020-07-29T01:01:25Z")

</div>

Hi!

The Numeric Entry Field component’s props.value property is of type ‘unicode’ instead of a numeric data type.

```auto
logger.info(str(type(pis)))

```

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

---

<div class="post-metadata">

**Author:** ![victor1](https://avatars.discourse-cdn.com/v4/letter/v/6de8d8/32.png) [@victor1](https://forum.inductiveautomation.com/u/victor1)\
**Post date:** [August 31, 2020, 5:56pm UTC](https://forum.inductiveautomation.com/t/bug-perspective-numeric-entry-field-as-unicode/37173/2 "2020-08-31T17:56:19Z")

</div>

This happens when the user has not entered anything.

Is it a bug or a feature? I need to know to decide how to validate the entries.

thank you

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 31, 2020, 6:58pm UTC](https://forum.inductiveautomation.com/t/bug-perspective-numeric-entry-field-as-unicode/37173/3 "2020-08-31T18:58:29Z")

</div>

This is a consequence of the front-end world’s reliance on Javascript, and therefore, loose types.  
You can just `int(pis)` and catch `ValueError` - if the input is already an integer it will be returned unmodified, and if it’s an invalid state you can handle the failure accordingly.
