Add GEOMEAN .xlsx, Update .md files, and Run cargo fmt

This commit is contained in:
Andrew Fillmore
2024-12-10 14:34:59 -08:00
committed by Nicolás Hatcher Andrés
parent e5aff48e36
commit d4a2289826
5 changed files with 18 additions and 19 deletions

View File

@@ -636,7 +636,7 @@ impl Model {
CalcResult::Number(max)
}
pub(crate) fn fn_geomean(&mut self, args: &[Node], cell: CellReferenceIndex) -> CalcResult{
pub(crate) fn fn_geomean(&mut self, args: &[Node], cell: CellReferenceIndex) -> CalcResult {
if args.is_empty() {
return CalcResult::new_args_number_error(cell);
}
@@ -714,6 +714,6 @@ impl Model {
message: "Division by Zero".to_string(),
};
}
CalcResult::Number(product.powf(1.0/count))
CalcResult::Number(product.powf(1.0 / count))
}
}