Skip to main content
pshashipreetham
18-Opal
18-Opal
July 5, 2021
Solved

Exponential in Numeric Widget

  • July 5, 2021
  • 3 replies
  • 2515 views

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.

Best answer by pshashipreetham

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 !!
 

3 replies

5-Regular Member
July 5, 2021

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?

pshashipreetham
18-Opal
18-Opal
July 6, 2021

Hi @mnarang,

What will be the best widget to avoid this issue?

Thanks,
Shashi

Support
July 15, 2021

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

Support
July 23, 2021

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

pshashipreetham
18-Opal
pshashipreetham18-OpalAuthorAnswer
18-Opal
August 18, 2021

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 !!
 

17-Peridot
August 19, 2021

@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