Number precision (Decimal Places) in Dashboard ui_numeric

I am using a ui_numeric node on a node-red dashboard to allow a user to
enter a number. The number should have two decimal places of precision.
I was at first using the Value Format {{value | number:2}}. This would only allow
the use to enter the number via up and down arrows which was painful. I did some
reading and found that if I used {{msg.payload}} instead of value, then the user could
use the arrow OR just type in a number. I put the following in then for Value Format {{msg.payload | number:2}}. The precision is not working when I use msg.payload but does work when I use value.
Is there a way around this? I tried changing the step level from 0.1 to 0.01 which worked for values
like 1.81 however 1.80 would be displayed as "1.8" dropping a decimal place.

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