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

Exponential in Numeric Widget

psp316r
12-Amethyst

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.

7 REPLIES 7
mnarang
17-Peridot
(To:psp316r)

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?

psp316r
12-Amethyst
(To:mnarang)

Hi @mnarang,

What will be the best widget to avoid this issue?

Thanks,
Shashi

slangley
23-Emerald I
(To:psp316r)

Hi @psp316r.

 

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

psp316r
12-Amethyst
(To:slangley)

Hi @slangley , 

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

Thanks,
Shashi

slangley
23-Emerald I
(To:psp316r)

Hi @psp316r

 

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

psp316r
12-Amethyst
(To:psp316r)

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

PEHOWE
15-Moonstone
(To:psp316r)

@psp316r,


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-ja...

 

Hope that address your issue.

 

Regards,

Peter

 

 

Announcements