Skip to main content

## clamp_float_value

# Function clamp_float_value

Source

    pub(crate) fn clamp_float_value<S: Semantics>(
        intrinsic_name: &str,
        val: IeeeFloat<S>,
    ) -> IeeeFloat<S>where
        IeeeFloat<S>: IeeeExt,

Expand description

Given a floating-point operation and a floating-point value, clamps the result to the output range of the given operation according to the C standard, if any.