This shows you the differences between two versions of the page.
— |
arduino:bits_and_bytes:highbyte [2024/02/16 01:04] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======highByte() ====== | ||
+ | |||
+ | ====Description ==== | ||
+ | |||
+ | Extracts the high-order (leftmost) byte of a word (or the second lowest byte of a larger data type). | ||
+ | |||
+ | ====Syntax ==== | ||
+ | |||
+ | highByte(x) | ||
+ | |||
+ | ====Parameters ==== | ||
+ | |||
+ | x: a value of any type | ||
+ | |||
+ | ====Returns ==== | ||
+ | |||
+ | byte | ||
+ | |||
+ | ====See also ==== | ||
+ | |||
+ | * [[arduino:bits and bytes:LowByte]] | ||
+ | * [[arduino:conversion:WordCast | word]] | ||
+ | Source: arduino.cc | ||