-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Closed
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and tools
Description
The methods f32::log and f64::log do not round correctly. As a trivial example, this code
fn main() {
println!("{}, {}", 13f32.exp2().log2(), 13f32.exp2().log(2.0));
println!("{}, {}", 29f64.exp2().log2(), 29f64.exp2().log(2.0));
}outputs
13, 12.999999
29, 29.000000000000004
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and tools