Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Treatment saturatingToF64

std/conv::saturatingToF64


Generics

◻ T: SaturatingToF64

Inputs

⇥ value: Stream<T>

Outputs

↦ into: Stream<f64>


Turns stream into f64 one, saturating if needed.

This treatment manages saturating and infaillible conversion to f64. If incoming data represents something out of bounds for f64, then the resulting value is set to the closest approximation possible.