MQTT binding transform output

Hello all, ia it possible to cut digits after the dot (.) During mqtt output? I already did a metadata state description to my number item to cut all values after the dot. However after sending them with mqtt there again is a decimal number? Maybe using the transform output in the mqtt channel?
Thank you :slight_smile:

If you do any math with these values do not round of truncate the values. Computers are not good at math and often only get really close to the correct value. If you prematurely round or truncate your calculations very quickly become widely inaccurate.

The usual correct approach is to do what you did and not round the value until just before it’s shown to a human. The rest of the time keep all the decimal places.

But if you must, then you can probably use the Outgoing Format filed which works just like the State Description Pattern on the Channel.