From dc3bf8826b89b8e97cde25bf11c318b840c10c1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Hatcher?= Date: Fri, 27 Dec 2024 19:18:51 +0100 Subject: [PATCH] FIX: PV Return #DIV/0! instead of #NUM! if rate = -1 --- base/src/functions/financial.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/src/functions/financial.rs b/base/src/functions/financial.rs index 766eb7d..0c84076 100644 --- a/base/src/functions/financial.rs +++ b/base/src/functions/financial.rs @@ -436,7 +436,7 @@ impl Model { } if rate == -1.0 { return CalcResult::Error { - error: Error::NUM, + error: Error::DIV, origin: cell, message: "Rate must be != -1".to_string(), };