This crate adds the core power and trigonomtric methods to the BigDecimal crate using a pre-calculated PI value accurate to 100 decimal places.
pow(n: i32)
acts only integers and is always faster than the equivalent with a BigDecimal exponentpowf(big: BigDecimal)
works with any BigDecimal exponent, but may be slowroot(n: i32)
works only with integers, but faster than powf() with a BigDecimal exponentsmart_round(n: u8)
Round the nearest n digits and then remove all trailing zeroes after the last signifying decimal digit.calc_pi()
Calculates PI to high precision from a constant stringsin()
sine of angle in radianscos()
cosine of angle in radianstan()
tangent of angle in radians