Tracking Issue for #![feature(const_float_round_methods)] · Issue #141555 · rust-lang/rust (original) (raw)

Feature gate: #![feature(const_float_round_methods)]

This is a tracking issue for making const some methods of floating point types:

This extends the work done in #130843

Public API

// in core impl { // ... pub const fn floor(self) -> Self; pub const fn ceil(self) -> Self; pub const fn trunc(self) -> Self; pub const fn fract(self) -> Self; pub const fn round(self) -> Self; pub const fn round_ties_even(self) -> Self; // ... }

Steps / History

Unresolved Questions

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html