Returns the character representing a specified number in a specified base.
[Visual Basic] Public Shared Function ForDigit( _ ByVal value As Integer, _ ByVal radix As Integer _ ) As Char [C#] public static char ForDigit( int value, int radix ); [C++] public: static __wchar_t ForDigit( int value, int radix ); [JScript] public static function ForDigit( value : int, radix : int ) : Char;
The character representing value in base radix.
Exception Type | Condition |
---|---|
FormatException | if radix is greater than MaxRadix or less than MinRadix. |
[C#]
ForDigit (10, 16) => "A" ForDigit(1, 10) => "1" ForDigit (11, 5) => Throws NumberFormatException