original_string: private function getUninitializedPrecision($value, $precision)
      {
          if (self::CURRENCY == $this->style) {
              return $precision;
          }
  
          if (!$this->isInitializedAttribute(self::FRACTION_DIGITS)) {
              preg_match('/.*\.(.*)/', (string) $value, $digits);
              if (isset($digits[1])) {
                  $precision = \strlen($digits[1]);
              }
          }
  
          return $precision;
      }
code: private function getUninitializedPrecision($value, $precision)
      {
          if (self::CURRENCY == $this->style) {
              return $precision;
          }
  
          if (!$this->isInitializedAttribute(self::FRACTION_DIGITS)) {
              preg_match('/.*\.(.*)/', (string) $value, $digits);
              if (isset($digits[1])) {
                  $precision = \strlen($digits[1]);
              }
          }
  
          return $precision;
      }
code_tokens: private function getUninitializedPrecision ( $ value , $ precision ) { if ( self :: CURRENCY == $ this -> style ) { return $ precision ; } if ( ! $ this -> isInitializedAttribute ( self :: FRACTION_DIGITS ) ) { preg_match ( '/.*\.(.*)/' , ( string ) $ value , $ digits ) ; if ( isset ( $ digits [ 1 ] ) ) { $ precision = \ strlen ( $ digits [ 1 ] ) ; } } return $ precision ; }
docstring: Returns the precision value if the DECIMAL style is being used and the FRACTION_DIGITS attribute is uninitialized.
  
  @param int|float $value     The value to get the precision from if the FRACTION_DIGITS attribute is uninitialized
  @param int       $precision The precision value to returns if the FRACTION_DIGITS attribute is initialized
  
  @return int The precision value
docstring_tokens: Returns the precision value if the DECIMAL style is being used and the FRACTION_DIGITS attribute is uninitialized .