4 ms·
Support for float const fns was merged just a couple months ago and hasn't been officially announced yet.
by AlotOfReading 2y ago
Support for float const fns was merged just a couple months ago and hasn't been officially announced yet.
- ok123456 2y agoIIRC, that only supports elementary arithmetic operations. Useful but not general.
- AlotOfReading 2y agoIt's relatively straightforward to build transcendental functions out of the basic operations and the stdlib support will eventually get there, but rust's float story is still a work in progress. They're trying to do things more properly and document semantics better than C and C++ have.
- BD103 2y agoSupport for constant float operations was released in Rust 1.82! https://blog.rust-lang.org/2024/10/17/Rust-1.82.0.html https://blog.rust-lang.org/2024/10/17/Rust-1.82.0.html