This documentation is archived and is not being maintained.

Decimal.op_Explicit Method (Decimal)

Converts a Decimal to a Unicode character.

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

Public Shared Narrowing Operator CType ( _
	value As Decimal _
) As Char
Dim input As Decimal
Dim output As Char

output = CType(input, Char)
Not applicable.



A Decimal to convert.

Return Value

A Unicode character that represents the converted Decimal.

Exception typeCondition


value is less than Int16.MinValue or greater than Int16.MaxValue.

The following code example converts Decimal numbers to Char values (Unicode characters) using the explicit Decimal to Char conversion.

No code example is currently available or this language may not be supported.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0