How to modify decimal data from firebase?

Help me, please. I want to modify the value is 2 decimal places from firebase


Use the Math Block


where the data is your value

1 Like

But my values ​​are constantly changing from the air quality sensor.

I suspect you should substitute the 'value' like this

as illustrated in the lower Block example every where your Blocks contain 'value' that requires formatting (eg. humidity, pressure ). Experiment, does the example work?

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