public static function ToDecimal( $value, $provider = null )
	{
		return is_double( $value )
			? DecimalValue::FromFloat( $value )
			: new DecimalValue( $value );
		// return Convert::ToDouble( $value, $provider );
	}
public static function ToDecimal( $value, $provider = null )
	{
		return is_double( $value )
			? DecimalValue::FromFloat( $value )
			: new DecimalValue( $value );
		// return Convert::ToDouble( $value, $provider );
	}
public static function ToDecimal ( $ value , $ provider = null ) { return is_double ( $ value ) ? DecimalValue :: FromFloat ( $ value ) : new DecimalValue ( $ value ) ; // return Convert::ToDouble( $value, $provider );
 }
Converts the value of this instance to an equivalent System.Decimal number using
the specified culture-specific formatting information.

@param object $value The value to convert
@param IFormatProvider $provider An implementation that supplies culture-specific formatting information.
@return DecimalValue A Decimal number equivalent to the value of this instance.
Converts the value of this instance to an equivalent System . Decimal number using the specified culture - specific formatting information .