doubles are little-endian