#Formatting numbers with hexadecimal in varying endianess
1 messages · Page 1 of 1 (latest)
you could use std.mem.nativeToLittle to force the number to be little-endian or @bitCast to reinterpret it as a byte array (which will account for host endianness)
std.fmt prints most significant digit first (which is not quite the same as endianness) since that's how humans tend to write numbers
perfect, thank you so much