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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

How to round number parameter values in text box widgets

pobi
7-Bedrock

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?

 

 

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
7-Bedrock
(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
7-Bedrock
(To:CarlesColl)

That works. Thank you CarlesColl!

Announcements


Top Tags