1 2 3 4
pub fn apply_exponent(price: &str, expo: i32) -> f64 { let price_val: f64 = price.parse().unwrap_or(0.0); price_val * 10f64.powi(expo) }