Data in depth
let a: f32 = 42.42;
let rankentype: u32 = unsafe {
std::mem::transmute(a)
};
Endianness
Understanding more about bit patterns enables you to compress your data.
Floating-point numbers
Each floating-point number is laid out in memory as scientific notation. (ex. 1.898 x 1027)
- sign: +/-
- mantissa (significand): 1.898
- radix (base): 10
- exponent: 27