//! Traits
//!usecrate::math::utilities::GetNumPower;/// A trait for adding the ability to round to (n) decimal places.
pubtraitRounding{/// Round a floating point number to the number (n) decimal points.
fnround_n(&self, number:f64, n:u32)->Result<f64, ()>{let power:f64=GetNumPower::power_10(n).into();let result =(number * power).round()/ power;Ok(result)}}