pub fn be_f64(bytes: &[u8]) -> f64
Returns the first eight bytes in the supplied slice as a big-endian f64.
f64
let bytes = &[64, 9, 33, 251, 84, 68, 45, 24]; assert_eq!(be_f64(bytes), std::f64::consts::PI);