Function tarrasque::le_f64

source ·
pub fn le_f64(bytes: &[u8]) -> f64
Expand description

Returns the first eight bytes in the supplied slice as a little-endian f64.

Example

let bytes = &[24, 45, 68, 84, 251, 33, 9, 64];
assert_eq!(le_f64(bytes), std::f64::consts::PI);