pub fn read_f64<R: ::std::io::Read>(
    reader: &mut R,
) -> Result<f64, lightning::ln::msgs::DecodeError> {
    let sign: bool = Readable::read(reader)?;
    let no_precision: u64 = Readable::read(reader)?;
    let extra_precision: u16 = Readable::read(reader)?;
    let mul_sign: f64 = if sign { 1.0 } else { -1.0 };

    Ok(((no_precision as f64) + ((extra_precision as f64) / ((1 << 16) as f64))) * mul_sign)
}
/// Reads an `f64` value from the given reader.
Reads an `f64` value from the given reader.
Reads an ` f64 ` value from the given reader .
pub fn read_f64<R: ::std::io::Read>(
    reader: &mut R,
) -> Result<f64, lightning::ln::msgs::DecodeError> {
    let sign: bool = Readable::read(reader)?;
    let no_precision: u64 = Readable::read(reader)?;
    let extra_precision: u16 = Readable::read(reader)?;
    let mul_sign: f64 = if sign { 1.0 } else { -1.0 };
    Ok(((no_precision as f64) + ((extra_precision as f64) / ((1 << 16) as f64))) * mul_sign)
}
pub fn read_f64 < R : :: std :: io :: Read > ( reader : & mut R , ) -> Result < f64 , lightning :: ln :: msgs :: DecodeError > { let sign : bool = Readable :: read ( reader ) ? ; let no_precision : u64 = Readable :: read ( reader ) ? ; let extra_precision : u16 = Readable :: read ( reader ) ? ; let mul_sign : f64 = if sign { 1.0 } else { - 1.0 } ; Ok ( ( ( no_precision as f64 ) + ( ( extra_precision as f64 ) / ( ( 1 << 16 ) as f64 ) ) ) * mul_sign ) }
Reads an `f64` value from the given reader.
Reads an ` f64 ` value from the given reader .
reader
&mut R