public static function float($value, $round = 10)
{
$cleaned = preg_replace('#[^0-9eE\\-\\.\\,]#ius', '', $value);
$cleaned = str_replace(',', '.', $cleaned);
preg_match('#[-+]?[0-9]+(\\.[0-9]+)?([eE][-+]?[0-9]+)?#', $cleaned, $matches);
$result = isset($matches[0]) ? $matches[0] : 0.0;
$result = round($result, $round);
return (double) $result;
}