toBinaryString

Returns a string representation of the unsigned integer value of i in binary (base 2).

The unsigned value is calculated by interpreting i as an unsigned 32‑bit integer.


Returns a string representation of the long argument as an unsigned integer in base 2.

The unsigned long value is the argument plus 264 if the argument is negative; otherwise, it is equal to the argument. This value is converted to a string of ASCII digits in binary (base 2) with no extra leading 0s.

Return

the string representation of the unsigned long value represented by the argument in binary (base 2).

Since

1.0.2

Parameters

i

a long to be converted to a string.

See also

Long.parseUnsignedLong