From 1053d00d22b5df5887a932a018b9b76d290e4975 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Hatcher?= Date: Sun, 16 Nov 2025 19:36:25 +0100 Subject: [PATCH] FIX: Copilot's suggestions --- base/src/cast.rs | 2 +- base/src/functions/mathematical.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/base/src/cast.rs b/base/src/cast.rs index 6f8a528..f12e06a 100644 --- a/base/src/cast.rs +++ b/base/src/cast.rs @@ -105,7 +105,7 @@ impl Model { if !currencies.iter().any(|e| e == currency) { currencies.push(currency); } - // We try to parse as number + // Try to parse as a formatted number (e.g., dates, currencies, percentages) if let Ok((v, _number_format)) = parse_formatted_number(&s, ¤cies) { return Ok(v); } diff --git a/base/src/functions/mathematical.rs b/base/src/functions/mathematical.rs index fa35669..4b21370 100644 --- a/base/src/functions/mathematical.rs +++ b/base/src/functions/mathematical.rs @@ -1168,7 +1168,7 @@ impl Model { let multiple = self.evaluate_node_in_context(&args[1], cell); - // if both are empty => #N/A + // if either is empty => #N/A if matches!(value, CalcResult::EmptyArg) || matches!(multiple, CalcResult::EmptyArg) { return CalcResult::Error { error: Error::NA,