original_string: public static function type_decimal_after($var, array $settings, array $matches)
  	{
  		if (is_array($var) or is_object($var))
  		{
  			throw new InvalidContentType('Array or object could not be converted to decimal.');
  		}
  
  		if ( ! is_numeric($var))
  		{
  			throw new InvalidContentType('Value '.$var.' is not numeric and can not be converted to decimal.');
  		}
  
  		$dec = empty($matches[2][0]) ? 2 : $matches[2][0];
  		return sprintf("%.".$dec."f", static::type_float($var));
  	}
code: public static function type_decimal_after($var, array $settings, array $matches)
  	{
  		if (is_array($var) or is_object($var))
  		{
  			throw new InvalidContentType('Array or object could not be converted to decimal.');
  		}
  
  		if ( ! is_numeric($var))
  		{
  			throw new InvalidContentType('Value '.$var.' is not numeric and can not be converted to decimal.');
  		}
  
  		$dec = empty($matches[2][0]) ? 2 : $matches[2][0];
  		return sprintf("%.".$dec."f", static::type_float($var));
  	}
code_tokens: public static function type_decimal_after ( $ var , array $ settings , array $ matches ) { if ( is_array ( $ var ) or is_object ( $ var ) ) { throw new InvalidContentType ( 'Array or object could not be converted to decimal.' ) ; } if ( ! is_numeric ( $ var ) ) { throw new InvalidContentType ( 'Value ' . $ var . ' is not numeric and can not be converted to decimal.' ) ; } $ dec = empty ( $ matches [ 2 ] [ 0 ] ) ? 2 : $ matches [ 2 ] [ 0 ] ; return sprintf ( "%." . $ dec . "f" , static :: type_float ( $ var ) ) ; }
docstring: Decimal post-treater, converts any number to a decimal representation
  
  @param   mixed  value to typecast
  
  @throws  InvalidContentType
  
  @return  float
docstring_tokens: Decimal post - treater converts any number to a decimal representation