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

Method floatvalue

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

Source from the content-addressed store, hash-verified

398 }
399
400 private function floatvalue($val) {
401 $val = str_replace(",", ".", $val);
402 $val = preg_replace('/\.(?=.*\.)/', '', $val);
403 $val = preg_replace('/[^0-9-.]+/', '', $val);
404 if (is_numeric($val)) {
405 return floatval($val);
406 } else {
407 return false;
408 }
409 }
410}

Callers 1

readDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected