rulesDSL maths

SolarEdge_Live_Production.state.toString.split(" kW").get(0) as Number

you find an excellent insight here