Open
0 of 1 issue completedDescription
Feature gate: #![feature(float_minimum_maximum)]
This is the tracking issue for the f{32,64}::{min,max}imum
functions.
It provide IEEE 754-2019 minimum
and maximum
functions to f32/f64.
Public API
impl f32 {
pub const fn minimum(self, other: f32) -> f32;
pub const fn maximum(self, other: f32) -> f32;
}
impl f64 {
pub const fn minimum(self, other: f64) -> f64;
pub const fn maximum(self, other: f64) -> f64;
}
Steps / History
- Implementation: Adds IEEE 754-2019 minimun and maximum functions for f32/f64 #91008
- Constified in Make some float methods unstable
const fn
#130568 - Final comment period (FCP)
- Stabilization PR
Unresolved Questions
- Should the implementation be stabilized in it's current state (ie. without intrinsic: explanation and llvm issue) ?
- Should it be called like IEEE 754-2019 (
minimum
andmaximum
) or something else ? Tracking Issue for float_minimum_maximum #91079 (comment) - Should the standard library have this function at all (we already have
min
/max
) ?