Function flo_float_encoder::squish_float [] [src]

pub fn squish_float<Target: Write>(
    target: &mut Target,
    last: f64,
    next: f64
) -> Result<usize, Error>

Writes a squished float to the specified stream

Floats are stored relative to their previous value. Any 'initial' value can be chosen (provided it's re-used when de-squishing). 0.0 will work well.