Function gds::utils::gds_real_32_to_bytes [] [src]

pub fn gds_real_32_to_bytes(r: f32) -> [u8; 4]

Converts a 32 bit real into a array of bytes.

The used format is not conform to IEEE floats as it uses 16 as base and excess 64 notation for the exponent. The first byte is used for the exponent (bits 2-8) and the sign (bit 1).