pub fn write_f64<W: lightning::util::ser::Writer>(
    input: f64,
    writer: &mut W,
) -> Result<(), ::std::io::Error> {
    let sign = input >= 0.0;
    sign.write(writer)?;
    let input_abs = f64::abs(input);
    let no_precision = f64::floor(input_abs);
    (no_precision as u64).write(writer)?;
    let extra_precision = f64::floor((input_abs - no_precision) * ((1 << 16) as f64)) as u16;
    extra_precision.write(writer)
}
/// Writes an `f64` value to the given writer.
Writes an `f64` value to the given writer.
Writes an ` f64 ` value to the given writer .
pub fn write_f64<W: lightning::util::ser::Writer>(
    input: f64,
    writer: &mut W,
) -> Result<(), ::std::io::Error> {
    let sign = input >= 0.0;
    sign.write(writer)?;
    let input_abs = f64::abs(input);
    let no_precision = f64::floor(input_abs);
    (no_precision as u64).write(writer)?;
    let extra_precision = f64::floor((input_abs - no_precision) * ((1 << 16) as f64)) as u16;
    extra_precision.write(writer)
}
pub fn write_f64 < W : lightning :: util :: ser :: Writer > ( input : f64 , writer : & mut W , ) -> Result < ( ) , :: std :: io :: Error > { let sign = input >= 0.0 ; sign . write ( writer ) ? ; let input_abs = f64 :: abs ( input ) ; let no_precision = f64 :: floor ( input_abs ) ; ( no_precision as u64 ) . write ( writer ) ? ; let extra_precision = f64 :: floor ( ( input_abs - no_precision ) * ( ( 1 << 16 ) as f64 ) ) as u16 ; extra_precision . write ( writer ) }
Writes an `f64` value to the given writer.
Writes an ` f64 ` value to the given writer .
input
f64
writer
&mut W