FIX: Two small fixes to YEARFRAC

* Takes abs value in between two dates
* Follows ODFv1.2 part 2 section 4.11.7.7
This commit is contained in:
Nicolás Hatcher
2025-11-08 13:41:33 +01:00
committed by Nicolás Hatcher Andrés
parent ed40f79324
commit 18db1cf052
4 changed files with 87 additions and 15 deletions

View File

@@ -26,8 +26,8 @@ fn test_yearfrac_basis_2_actual_360() {
panic!("Expected numeric value in A2");
}
// Negative symmetric of A1
assert_eq!(model._get_text("A3"), *"-1");
// always positive A1
assert_eq!(model._get_text("A3"), *"1");
}
#[test]