ToBoolean Method (Decimal)

Convert.ToBoolean Method (Decimal)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Converts the value of the specified Decimal number to an equivalent Boolean value.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public static bool ToBoolean(
	decimal value
)

Parameters

value
Type: System.Decimal
A Decimal number.

Return Value

Type: System.Boolean
true if value is not zero; otherwise, false.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2016 Microsoft