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

How to round number parameter values in text box widgets

SOLVED
Regular Member

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
Highlighted

Re: How to round number parameter values in text box widgets

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

Re: How to round number parameter values in text box widgets

I've attached my current Mashup.

Highlighted

Re: How to round number parameter values in text box widgets

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

Re: How to round number parameter values in text box widgets

That works. Thank you CarlesColl!

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum! ______________________________