Skip to content

Commit

Permalink
Add more_float_constants for f64 FRAC_1_SQRT_2PI
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsided authored May 22, 2024
1 parent e86a84a commit 48e845f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/num/f64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ pub mod consts {
pub const FRAC_1_SQRT_PI: f64 = 0.564189583547756286948079451560772586_f64;

/// 1/sqrt(2π)
#[unstable(feature = "more_float_constants", issue = "103883")]
pub const FRAC_1_SQRT_2PI: f64 = 0.398942280401432677939946059934381868_f64;

/// 2/π
Expand Down

0 comments on commit 48e845f

Please sign in to comment.