double toDouble(String str){ double ret = 0; try { ret = double.parse(str); }catch(_){} return ret; }