byteHi Property |
Top Previous Next |
Gets the integer representation of the high byte of a 32-bit float. Syntaxnumber.byteHi DescriptionThe high byte is the byte that holds the most significant part of an integer. It consists of power of two from 24 to 31. It comprises the leftmost 8 bits from a 32-bit float representation. For example, the bit representation of integer 98 is 00000000 00000000 00000000 01100010. The high byte is 00000000. RemarksThere is not a standard order for bytes to be stored in the computer memory or on storage media such as disks. Therefore, having the 32-bit float representation of integers and splitting it into specific bytes (High Byte, Medium High Byte, Medium Low Byte and Low Byte) permits hardware being built so that the Low Byte is stored at the lowest memory address (Little Endian) or the High Byte is stored at the lowest memory address (Big Endian). Examplesvar num=98; Net.write(num.byteHi); // Returns 0 See Also |