Integer.ToUnsignedString Method

Definition

Overloads

ToUnsignedString(Int32, Int32)

Returns a string representation of the first argument as an unsigned integer value in the radix specified by the second argument.

ToUnsignedString(Int32)

Returns a string representation of the argument as an unsigned decimal value.

ToUnsignedString(Int32, Int32)

Returns a string representation of the first argument as an unsigned integer value in the radix specified by the second argument.

[Android.Runtime.Register("toUnsignedString", "(II)Ljava/lang/String;", "", ApiSince=26)]
public static string ToUnsignedString (int i, int radix);
[<Android.Runtime.Register("toUnsignedString", "(II)Ljava/lang/String;", "", ApiSince=26)>]
static member ToUnsignedString : int * int -> string

Parameters

i
Int32

an integer to be converted to an unsigned string.

radix
Int32

the radix to use in the string representation.

Returns

an unsigned string representation of the argument in the specified radix.

Attributes

Remarks

Returns a string representation of the first argument as an unsigned integer value in the radix specified by the second argument.

If the radix is smaller than Character.MIN_RADIX or larger than Character.MAX_RADIX, then the radix 10 is used instead.

Note that since the first argument is treated as an unsigned value, no leading sign character is printed.

If the magnitude is zero, it is represented by a single zero character '0' ('\u005Cu0030'); otherwise, the first character of the representation of the magnitude will not be the zero character.

The behavior of radixes and the characters used as digits are the same as #toString(int, int) toString.

Added in 1.8.

Java documentation for java.lang.Integer.toUnsignedString(int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ToUnsignedString(Int32)

Returns a string representation of the argument as an unsigned decimal value.

[Android.Runtime.Register("toUnsignedString", "(I)Ljava/lang/String;", "", ApiSince=26)]
public static string ToUnsignedString (int i);
[<Android.Runtime.Register("toUnsignedString", "(I)Ljava/lang/String;", "", ApiSince=26)>]
static member ToUnsignedString : int -> string

Parameters

i
Int32

an integer to be converted to an unsigned string.

Returns

an unsigned string representation of the argument.

Attributes

Remarks

Returns a string representation of the argument as an unsigned decimal value.

The argument is converted to unsigned decimal representation and returned as a string exactly as if the argument and radix 10 were given as arguments to the #toUnsignedString(int, int) method.

Added in 1.8.

Java documentation for java.lang.Integer.toUnsignedString(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to