Skip to main content
Jul 5, 2021 7:31 AM UTC
Solved

Exponential in Numeric Widget

Numeric Widget value flashes as the exponential value in the input box when adding a decimal value of more than 6 or 7. 
for example 0.000000001, it shows as 1e-8.

psp316r_0-1625470089532.png

Issue: I want to only show the value instead of the exponential.

Aug 18, 2021 3:12 AM UTC

Hi there,

Since thingworx community is not responding, the only solution I have got is to use the constraint property to the Numeric Widget, with Minimum and Maximum values, something below the minimum and above the maximum is typed there will be an Pop-up showing up, saying out of range, which is again an UI Inconsistency, can't edit that Pop-up or disable it.

@paic @mnarang @CarlesColl 

Thanks !!
 

7 replies

Jul 5, 2021 10:48 AM UTC

I think this is as per design and JS constraint- https://www.ptc.com/en/support/article/CS276602. If feasible can you use another widget to display these long decimal values?

Jul 6, 2021 5:39 AM UTC

Hi @mnarang,

What will be the best widget to avoid this issue?

Thanks,
Shashi

Jul 15, 2021 7:25 PM UTC

Hi @pshashipreetham.

 

One option would be to use a text widget.  If you would like to request a change in the current behavior, please feel free to post a request on the ThingWorx Ideas page.

 

Regards.

 

--Sharon

Jul 23, 2021 6:46 PM UTC

Hi @pshashipreetham

 

If you feel your question has been answered, please mark the appropriate response as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon

pshashipreethamAuthorAnswer
Aug 18, 2021 3:12 AM UTC

Hi there,

Since thingworx community is not responding, the only solution I have got is to use the constraint property to the Numeric Widget, with Minimum and Maximum values, something below the minimum and above the maximum is typed there will be an Pop-up showing up, saying out of range, which is again an UI Inconsistency, can't edit that Pop-up or disable it.

@paic @mnarang @CarlesColl 

Thanks !!
 

Aug 19, 2021 6:59 PM UTC

@pshashipreetham,


There is an article on the support site. 

Article - CS276602 - Numeric Entry Widget shows large numbers with an exponent in ThingWorx

https://www.ptc.com/en/support/article/CS276602

 

This discuss the question you are asking. The limit is being driven by JavaScript issue. The articles references a solution which can be found in StackOverflow.

https://stackoverflow.com/questions/1685680/how-to-avoid-scientific-notation-for-large-numbers-in-javascript

 

Hope that address your issue.

 

Regards,

Peter