original_string: public static function decimal( $value, $decimals = 2 )
  	{
  		$nf = new \NumberFormatter(\Locale::getDefault(), \NumberFormatter::DECIMAL);
  		$nf->setAttribute(\NumberFormatter::MAX_FRACTION_DIGITS, $decimals);
  		return $nf->format($value);
  	}
code: public static function decimal( $value, $decimals = 2 )
  	{
  		$nf = new \NumberFormatter(\Locale::getDefault(), \NumberFormatter::DECIMAL);
  		$nf->setAttribute(\NumberFormatter::MAX_FRACTION_DIGITS, $decimals);
  		return $nf->format($value);
  	}
code_tokens: public static function decimal ( $ value , $ decimals = 2 ) { $ nf = new \ NumberFormatter ( \ Locale :: getDefault ( ) , \ NumberFormatter :: DECIMAL ) ; $ nf -> setAttribute ( \ NumberFormatter :: MAX_FRACTION_DIGITS , $ decimals ) ; return $ nf -> format ( $ value ) ; }
docstring: returns a string with decimal formatted accordingly to locale settings
  @param string $value
  @param string $decimals
  @return string
docstring_tokens: returns a string with decimal formatted accordingly to locale settings