다음을 통해 공유


Integer.ToUnsignedLong(Int32) Method

Definition

Converts the argument to a long by an unsigned conversion.

[Android.Runtime.Register("toUnsignedLong", "(I)J", "", ApiSince=26)]
public static long ToUnsignedLong (int x);
[<Android.Runtime.Register("toUnsignedLong", "(I)J", "", ApiSince=26)>]
static member ToUnsignedLong : int -> int64

Parameters

x
Int32

the value to convert to an unsigned long

Returns

the argument converted to long by an unsigned conversion

Attributes

Remarks

Converts the argument to a long by an unsigned conversion. In an unsigned conversion to a long, the high-order 32 bits of the long are zero and the low-order 32 bits are equal to the bits of the integer argument.

Consequently, zero and positive int values are mapped to a numerically equal long value and negative int values are mapped to a long value equal to the input plus 2<sup>32</sup>.

Added in 1.8.

Java documentation for java.lang.Integer.toUnsignedLong(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