Truncate a temp output to 2 digits


#1

I am using a dht 11 temp sensor and would like to change 72.00 deg to 72 deg to save display digits. I have used round to eliminate the decimals from jumping around but want to drop the .00 digits. Is there a node to do this.


#2

Use the Pad with Zeros node and set it to 2 as in two digits.


#3

format-number with DIG = 0 will do the same thing.


#4

Thanks for the help i used format and it worked


closed #5

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.