Function |saturating_to_f64

std/conv::|saturating_to_f64


Usage

|saturating_to_f64(value)

Generics

◻ T: SaturatingToF64

Parameters

↳ value: T

Return

f64


Turns data into f64, saturating if needed.

This function makes a 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.