Gauge should show only positive, integer values

Is there a way to clip the value shown as a gauge to show up only values >= 0, so to speak only positive values? I current use a gauge to show my current house energy consumption in Watt and that value could go negative because of a solar system. It also shows the value with 2 digits after the decimal point.

image

Sure, create a template helper, or template sensor and use that in your gauge.

The state template you want will be:

{% set power = states('sensor.your_power_sensor_here')|int %}
{{ power if power > 0 else 0 }}