Skip to main content
1-Visitor
Solved

Rounding in thingworx?

Does the toFixed() method not work in thingworx?

5-Regular Member

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

5-Regular Member

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

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

 

Translate
Chao1231-VisitorAuthor
1-Visitor

Awesome thanks.

Translate