diff --git a/kalk/src/kalk_num/mod.rs b/kalk/src/kalk_num/mod.rs index 877ea5c..7a1de32 100644 --- a/kalk/src/kalk_num/mod.rs +++ b/kalk/src/kalk_num/mod.rs @@ -107,7 +107,7 @@ impl KalkNum { ScientificNotation { negative: value < 0f64, - value: value / (10f64.pow(exponent - 1) as f64), + value: value / (10f64.powf(exponent as f64 - 1f64) as f64), // I... am not sure what else to do... exponent, imaginary: complex_number_type == ComplexNumberType::Imaginary,