I think I've tried almost everything like Number(var), ParseInt(var,10), toFixed(1),...., but I'm getting always NaN in the context menu of Global vars.
See the function code:
var status=msg.payload.weather;
var xRain=0;
var iAuxCount,iRainCount=0;
var newmsg;
var status=msg.payload.weather;
var xRain=global.get('xRain')||0;
var iAuxCount=global.get('iAuxCount')||0;
var iRainCount=global.get('iRainCount')||0;