Skip to main content

e_const

Function e_const 

Source
pub fn e_const(prec: u32) -> OxiNumResult<BigFloat>
Expand description

Return e (Euler’s number) at prec bits of precision.

§Errors

Propagates any arithmetic error from the internal 1/k! computation.

§Examples

use oxinum_float::native::e_const;
let e = e_const(64).expect("e");
assert!((e.to_f64() - std::f64::consts::E).abs() < 1e-14);