文档介绍:--------------------------------------------------------------- 最新资料推荐 ------------------------------------------------.toString (Num, radix)
Practise
next
class:
(1)
do not
use API to convert an integer
into binary Converts binary to decimal, octal, and sixteen
hexadecimal
(1) manual calculation
(2) use calculator
(3)
using
API: (s,
2) / (s,
2) can
convert
binary
to
decimal
Octal:
an
octal
number
can
be
represented by a binary number three Sixteen hexadecimal - a
sixteen
decimal number can be expressed
in four
binary
numbers
The representation
of
5.
positive
integers
and negative
integers
in
a computer
Positive
integer:
+123 positive,
as the
original
code,
complement complement
form
Binary
code:
0000000000000000 (0000000001111011 for enough 32bit) One
’s
complement
says:
0000000000000000 0000000001111011
Binary
--------------------------------------------------------------- 最新资料推荐 ------------------------------------------------------
complement
said:
0000000000000000,
0000000001111011
Negative integer: -123 first as the sign bit, by bit reverse
complement,
complement
is
complement
+1
Binary
code:
One’s
complement
says:
Binary
complement
said:
computer is the complement. Tips:
how to complement negative
conversion i