FIX: PV Return #DIV/0! instead of #NUM! if rate = -1

This commit is contained in:
Nicolás Hatcher
2024-12-27 19:18:51 +01:00
committed by Nicolás Hatcher Andrés
parent 38023d3156
commit dc3bf8826b

View File

@@ -436,7 +436,7 @@ impl Model {
} }
if rate == -1.0 { if rate == -1.0 {
return CalcResult::Error { return CalcResult::Error {
error: Error::NUM, error: Error::DIV,
origin: cell, origin: cell,
message: "Rate must be != -1".to_string(), message: "Rate must be != -1".to_string(),
}; };