Skip to main content

get_f32

Function get_f32 

Source
pub fn get_f32(b: &[u8], off: usize) -> f32
Expand description

Reads a little endian f32 at off, or 0 if the slice is too short.

Bit for bit, through f32::from_le_bytes, which is not the same as reading a number and converting it: a vector that came back nearly right would reorder search results for no reason anybody could find.