FIX: PV Return #DIV/0! instead of #NUM! if rate = -1
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
38023d3156
commit
dc3bf8826b
@@ -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(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user