MCPcopy Create free account
hub / github.com/Rello/analytics / floatvalue

Method floatvalue

lib/Datasource/Github.php:387–396  ·  view source on GitHub ↗
($val)

Source from the content-addressed store, hash-verified

385 }
386
387 private function floatvalue($val) {
388 $val = str_replace(",", ".", $val);
389 $val = preg_replace('/\.(?=.*\.)/', '', $val);
390 $val = preg_replace('/[^0-9-.]+/', '', $val);
391 if (is_numeric($val)) {
392 return floatval($val);
393 } else {
394 return false;
395 }
396 }
397}

Callers 1

readDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected