NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Radix.ForDigit

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;

Parameters

value
the value to be converted to a character
radix
the number of the counting system to which value is to be converted

Return Value

The character representing value in base radix.

Exceptions

Exception Type Condition
FormatException if radix is greater than MaxRadix or less than MinRadix.

Example [C#]

[C#]

ForDigit (10, 16) => "A" 
ForDigit(1, 10) => "1"

ForDigit (11, 5) => Throws
NumberFormatException

See Also

Radix Class | Radix Members | System Namespace