toDouble function

double toDouble(
  1. String str
)

Implementation

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