f64::atan2
documentation error
#136275
Labels
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
A-floating-point
Area: Floating point numbers and arithmetic
C-bug
Category: This is a bug.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
Location
library/std/src/f64.rs:793
Summary
The
f64::atan2
function documentation specifies that the output could be in the range(-PI, PI]
. However its not true. It could return-PI
as well.Following is from the function documentation:
Example case:
f64::atan2(-0.0, -1.0)
returns-f64::PI
The text was updated successfully, but these errors were encountered: