cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Exponential in Numeric Widget

pshashipreetham
17-Peridot

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.

Shashi Preetham,
Email: psp316r@outlook.com,
Mobile: +91 8099838001.
ACCEPTED SOLUTION

Accepted Solutions

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

Shashi Preetham,
Email: psp316r@outlook.com,
Mobile: +91 8099838001.

View solution in original post

7 REPLIES 7

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?

Hi @mnarang,

What will be the best widget to avoid this issue?

Thanks,
Shashi

Shashi Preetham,
Email: psp316r@outlook.com,
Mobile: +91 8099838001.

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

Hi @slangley , 

Thanks for the quick  response, the issue didn't get solved, we have a raised Ticket in support !!

Thanks,
Shashi

Shashi Preetham,
Email: psp316r@outlook.com,
Mobile: +91 8099838001.

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

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

Shashi Preetham,
Email: psp316r@outlook.com,
Mobile: +91 8099838001.

@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

 

 

Announcements


Top Tags