Next: , Previous: , Up: Internal Routines   [Contents][Index]

15.5.161 endian


Swap bytes in each element of numerical array or scalar x according to its data type in order to switch between littleendian and bigendian representation of numbers. In float and long numbers, bytes 0 and 3 are swapped, and bytes 1 and 2. In a double number, bytes 0 and 7 are swapped, and also bytes 1 and 6, bytes 2 and 5, and bytes 3 and 4. In a word number, bytes 0 and 1 are swapped. A byte number is left unchanged.