Version

ToDecimal(Decimal) Method

Converts the Value to a decimal data type
Syntax
public bool ToDecimal( 
   out decimal result
)

Parameters

result
The resulting decimal value. If the return value is false, the result is 0.

Return Value

True if the value was successfully converted to a decimal; otherwise false.
Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also