Current location - Health Preservation Learning Network - Slimming men and women - What does it mean to convert JAVA :int into bite and double into float? Higher, please. ...
What does it mean to convert JAVA :int into bite and double into float? Higher, please. ...
Such as int to byte. ..

Int is 4 bytes .. a byte is a byte .. so int is a 32-bit binary .. and a byte is 8 bits. ..

If an integer is 2 ... then it is 00000000 when converted into binary ...10 when converted into btye, the front is cut off ... until there are 8 bits left ... so it is 00000000... 10/0 when turned around. ..