Programmcode auf einem Bildschirm als Symbol fuer die Programmiersprache Rust

Rust 1.98 Adds Algebraic Floating-Point Methods

The Rust team released version 1.98.0 on 20 August 2026. The headline change is a set of “algebraic” methods for floating-point numbers that give the compiler more room to optimise.

Algebraic floating-point methods

The f32 and f64 types gain new methods for addition, subtraction, multiplication, division and remainder. They let the compiler optimise using the algebraic properties of real numbers – for example reordering operations. This is useful for compute-heavy code where tiny deviations in the result are acceptable but speed matters.

Other changes

  • All primitive integer types get a format_into method that takes a &mut NumBuffer.
  • The documentation of ManuallyDrop was clarified and now gives a stable guarantee regarding undefined behaviour.

If you have rustup installed, update with rustup update stable.


Sources: Rust Blog, Linuxiac.

Mastodon
Scroll to Top