core::f32::consts - Rust
Description: API documentation for the Rust `consts` mod in crate `core`.
Keywords: rust, rustlang, rust-lang, consts

# 1.0.0[−][src]Module core::f32::consts

Basic mathematical constants.

## Constants

E | Euler's number (e)
FRAC_1_PI | 1/π
FRAC_2_PI | 2/π
FRAC_2_SQRT_PI | 2/sqrt(π)
FRAC_1_SQRT_2 | 1/sqrt(2)
FRAC_PI_2 | π/2
FRAC_PI_3 | π/3
FRAC_PI_4 | π/4
FRAC_PI_6 | π/6
FRAC_PI_8 | π/8
LN_2 | ln(2)
LN_10 | ln(10)
LOG2_E | log2(e)
LOG10_E | log10(e)
PI | Archimedes' constant (π)
SQRT_2 | sqrt(2)
LOG10_2 | Experimental log10(2)
LOG2_10 | Experimental log2(10)

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g., `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g., `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g., `str,u8` or `String,struct:Vec,test`)