Function ebml_iterable::tools::arr_to_f64
source · pub fn arr_to_f64(arr: &[u8]) -> Result<f64, ToolError>
Expand description
Reads an f64
value from an array slice of length 4 or 8.
This method wraps f32
and f64
conversions from big endian byte arrays and casts the result as an f64
.
§Errors
This method will throw an error if the input slice length is not 4 or 8.