original_string: public static function value($str, $round = false)
      {
          if (is_string($str)) {
              $str = strtr($str, '.', '');
              $str = strtr($str, ',', '.');
          }
  
          $val = floatval($str);
  
          if ($round !== false) {
              $val = round($val, intval($round));
          }
  
          return $val;
      }
code: public static function value($str, $round = false)
      {
          if (is_string($str)) {
              $str = strtr($str, '.', '');
              $str = strtr($str, ',', '.');
          }
  
          $val = floatval($str);
  
          if ($round !== false) {
              $val = round($val, intval($round));
          }
  
          return $val;
      }
code_tokens: public static function value ( $ str , $ round = false ) { if ( is_string ( $ str ) ) { $ str = strtr ( $ str , '.' , '' ) ; $ str = strtr ( $ str , ',' , '.' ) ; } $ val = floatval ( $ str ) ; if ( $ round !== false ) { $ val = round ( $ val , intval ( $ round ) ) ; } return $ val ; }
docstring: Converte string em float.
  
  @param $str
  @param bool|int $round
  
  @return float
docstring_tokens: Converte string em float .