Limit float value to 2 decimal places?

6 views
Skip to first unread message

Zuhdi AK

unread,
Apr 29, 2016, 9:39:13 PM4/29/16
to Wireless Sensor Tags
I'm using sensor.temperature to get the tag's value and print it out using : KumoApp.Log(sensor.name + " is normal at " + sensor.temperature); 

However, the returned value is something like 23.270689010620117 
Is there a way to return it as 23.27?
Reply all
Reply to author
Forward
0 new messages