Skip to main content
1-Visitor
May 28, 2018
Solved

How to round number parameter values in text box widgets

  • May 28, 2018
  • 1 reply
  • 2655 views

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?

 

 

Best answer by CarlesColl

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.

1 reply

pobi1-VisitorAuthor
1-Visitor
May 28, 2018

I've attached my current Mashup.

1-Visitor
May 28, 2018

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.

pobi1-VisitorAuthor
1-Visitor
May 29, 2018

That works. Thank you CarlesColl!