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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

How to round number parameter values in text box widgets

pobi
6-Contributor

How to round number parameter values in text box widgets

MyHome example in Get Started with ThingWorx for IoT includes a temperature parameter, streamed from server (value changes periodically). 

 

I want to display that in my Mash as a number, in a text box widget but can't figure out how to round up the numbers. 

 

Can anyone help please?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

I don't know which widget did you use to use the temperature, but if you did use a ValueDisplay you have to go to ValueFormat parameter on widget and set Renderer: Number and on format 0.00 for instance to round to two decimals.

View solution in original post

3 REPLIES 3
pobi
6-Contributor
(To:pobi)

I've attached my current Mashup.

I don't know which widget did you use to use the temperature, but if you did use a ValueDisplay you have to go to ValueFormat parameter on widget and set Renderer: Number and on format 0.00 for instance to round to two decimals.

pobi
6-Contributor
(To:CarlesColl)

That works. Thank you CarlesColl!

Top Tags