asp.net.ph

IConvertible.ToDecimal Method

System Namespace   IConvertible Class


Converts the value of this instance to an equivalent Decimal number using the specified culture-specific formatting information.

The IConvertible type is not CLS-compliant. For more information about CLS compliance, see What is the Common Language Specification.

[ VB ]
<CLSCompliant ( False ) >
Function ToDecimal ( _
   ByVal provider As IFormatProvider _
) As Decimal

[ C# ]
[CLSCompliant ( false ) ]

decimal ToDecimal (
   IFormatProvider provider
);

[ C++ ]
[CLSCompliant ( false ) ]

Decimal ToDecimal (
   IFormatProvider* provider
);

[JScript ]
function CLSCompliant ( false )
ToDecimal (
   provider : IFormatProvider
) : Decimal;

Parameters

provider
An IFormatProvider interface implementation that supplies culture-specific formatting information.

Return Value

A Decimal number equivalent to the value of this instance.

See Also

IConvertible Members Skip Navigation Links


Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note