Skip to main content
Jun 5, 2019 5:08 PM UTC
Solved

Rounding in thingworx?

Does the toFixed() method not work in thingworx?

Jun 5, 2019 5:22 PM UTC

Please try Math.round(value) in your java script to achieve Rounding in ThingWorx.

var result = Math.round(5.56);
//result will be 6

 

2 replies

Jun 5, 2019 5:22 PM UTC

Please try Math.round(value) in your java script to achieve Rounding in ThingWorx.

var result = Math.round(5.56);
//result will be 6

 

Chao123Author
Jun 5, 2019 5:31 PM UTC

Awesome thanks.