How can I get rid of the values after the comma?

How can I get rid of the values after the comma?

That is my template: {{states('sensor.fritz_box_6490_cable_kdg_bytes_received')| float /1000000}}
thanks for help
~Marlon

Given your example, are you wanting to truncate to 338 or round up to 339 ?
What have you tried already that did not work?

try
{{(states('sensor.fritz_box_6490_cable_kdg_bytes_received') /1000000) | int }}

1 Like

Pipe it to an int instead of a float.

Edit, beaten to it :smile:

1 Like