| 4309068e | 18-Nov-2026 |
Jim Jagielski <jimjag@gmail.com> |
test/odf-validate: SEARCHB.regex.star should expect 3
As a regex a*c on "abc" matches the c, like SEARCH does. 1 is the wildcard answer. |
| e1d63489 | 18-Nov-2026 |
Jim Jagielski <jimjag@gmail.com> |
test/odf-validate: ODS-related save/reload check for ISOWEEKNUM and WEEKNUM |
| f15d8c23 | 18-Nov-2026 |
Jim Jagielski <jimjag@gmail.com> |
test/odf-validate: calcval cases for ODDFPRICE and ODDFYIELD
Expected values are Excel results from the random comparison. The rows where we differ from Excel (DFC equal to E, annual 30/360 at the e
test/odf-validate: calcval cases for ODDFPRICE and ODDFYIELD
Expected values are Excel results from the random comparison. The rows where we differ from Excel (DFC equal to E, annual 30/360 at the end of February) we decide to keep our results and document it in the note.
show more ...
|
| 5c5cb5c3 | 18-Nov-2026 |
Jim Jagielski <jimjag@gmail.com> |
Merge branch 'openformula' of https://github.com/apache/openoffice into openformula |
| 437c29e0 | 18-Nov-2026 |
Jim Jagielski <jimjag@gmail.com> |
sc: F.DIST for very large X, RRI with Nper <= 0
F.DIST(1E308;5;10) gave #VALUE! and F.DIST(1E17;5;1;0) gave Err:502. RRI(0;100;100) returned 0 and RRI(-2;100;200) a finite rate. Both are errors now,
sc: F.DIST for very large X, RRI with Nper <= 0
F.DIST(1E308;5;10) gave #VALUE! and F.DIST(1E17;5;1;0) gave Err:502. RRI(0;100;100) returned 0 and RRI(-2;100;200) a finite rate. Both are errors now, as they should have been.
show more ...
|
| b5b8b953 | 18-Nov-2026 |
Jim Jagielski <jimjag@gmail.com> |
test/odf-validate: more calcval cases for the post-#523 functions
Edge cases for ISOWEEKNUM, HYPGEOMDIST, F.DIST, F.INV, FINDB, SEARCHB and REPLACEB, from Pedro's cases with the expected values reco
test/odf-validate: more calcval cases for the post-#523 functions
Edge cases for ISOWEEKNUM, HYPGEOMDIST, F.DIST, F.INV, FINDB, SEARCHB and REPLACEB, from Pedro's cases with the expected values recomputed; several of his were wrong. SEARCHB goes by regex, not wildcards.
show more ...
|
| 481a24d8 | 18-Nov-2026 |
Jim Jagielski <jimjag@gmail.com> |
test/odf-validate: replace the post-#523 calcval cases with ones checked against Excel
Again, we're using Excel (and our interpretation of the docs) to determine "correctness" |
| 38aedfe2 | 18-Nov-2026 |
Pedro Giffuni <pfg@apache.org> |
H.9.1: Fix HYPGEOMDIST cumulative default for backward compatibility
- 4-argument calls return PMF (Cumulative=FALSE) for legacy Excel/Calc compatibility - 5-argument calls respect explicit Cumulati
H.9.1: Fix HYPGEOMDIST cumulative default for backward compatibility
- 4-argument calls return PMF (Cumulative=FALSE) for legacy Excel/Calc compatibility - 5-argument calls respect explicit Cumulative flag (TRUE=CDF, FALSE=PMF) - Updated help text to clarify default behavior for 4-arg vs 5-arg calls - Updated test comments to reflect correct expectations
show more ...
|
| c588e161 | 18-Nov-2026 |
Pedro Giffuni <pfg@apache.org> |
H.9: Add Cumulative parameter to HYPGEOMDIST
- ScHypGeomDist(): Support 4-5 params, add Cumulative flag (default TRUE) - Add lcl_CalcHypGeomPMF() helper using log-gamma for PMF - CDF: sum of PMF fro
H.9: Add Cumulative parameter to HYPGEOMDIST
- ScHypGeomDist(): Support 4-5 params, add Cumulative flag (default TRUE) - Add lcl_CalcHypGeomPMF() helper using log-gamma for PMF - CDF: sum of PMF from 0 to x when Cumulative=TRUE - Function Wizard: 5 params, Cumulative param added - Help: Updated syntax, Cumulative param doc, examples - Tests: 15 cases (PMF, CDF, legacy, edge cases, legacy name)
Fixes Err:504 for 5-arg calls
show more ...
|
| 643fd762 | 18-Nov-2026 |
Pedro Giffuni <pfg@apache.org> |
H.8.1: FDIST/FINV opcode separation — standard left-tail vs legacy right-tail
- New opcodes: SC_OPCODE_LEGACY_F_DIST=417, SC_OPCODE_LEGACY_F_INV=418 - Standard FDIST/FINV: left-tail CDF and inverse
H.8.1: FDIST/FINV opcode separation — standard left-tail vs legacy right-tail
- New opcodes: SC_OPCODE_LEGACY_F_DIST=417, SC_OPCODE_LEGACY_F_INV=418 - Standard FDIST/FINV: left-tail CDF and inverse - Legacy LEGACY.FDIST/LEGACY.FINV: right-tail CDF and inverse (preserved) - New evaluators: ScLegacyFDist(), ScLegacyFInv() (right-tail) - Standard ScFDist() now computes left-tail CDF (1 - right-tail) - Standard ScFInv() now inverts left-tail CDF - BIFF import uses legacy opcodes for backward compatibility - ODF import uses standard opcodes - Function Wizard resources for both standard and legacy - Help IDs and help topics for both standard and legacy - Updated test vectors for standard/legacy/round-trip/cross-tail - Updated help documentation for standard/legacy
show more ...
|
| 7024dd43 | 18-Nov-2026 |
Pedro Giffuni <pfg@apache.org> |
H.8: Fix FDIST/FINV — param count, help, tests, density function
- FDIST: Add 4th param (cumulative flag) per ODF 6.17.9 - ScFDist() now supports 3-4 params, defaults to cumulative=TRUE - Added
H.8: Fix FDIST/FINV — param count, help, tests, density function
- FDIST: Add 4th param (cumulative flag) per ODF 6.17.9 - ScFDist() now supports 3-4 params, defaults to cumulative=TRUE - Added GetFDistDens() for probability density function - Function Wizard: param count 4, help ID HID_FUNC_FDIST - Help: HID_FUNC_FDIST (was HID_FUNC_FVERT), 04060182.xhp updated - Added GetFDistDens() for density function
- FINV: Help and tests updated - 04060182.xhp FINV section improved - Test cases added
- Both: Added regression tests (SG.FDIST-01..12, SG.FINV-01..12) - FDIST: basic, density, cumulative, edge cases, legacy name - FINV: basic, roundtrip, edge cases, legacy name
- Audit records updated
show more ...
|
| 9bc678ec | 17-Nov-2026 |
Pedro Giffuni <pfg@apache.org> |
H.5.1: Priority 2 consistency fixes - calcval tests for H.1/H.2 functions
- Add 40 calcval test cases: - SG.NUMVAL-01..10 (NUMBERVALUE: basic, European, group sep, percent, whitespace, empty, inva
H.5.1: Priority 2 consistency fixes - calcval tests for H.1/H.2 functions
- Add 40 calcval test cases: - SG.NUMVAL-01..10 (NUMBERVALUE: basic, European, group sep, percent, whitespace, empty, invalid, locale, cell ref) - SG.FINDB-01..10 (FINDB: basic, start pos, not found, case-sensitive, bounds, DBCS) - SG.SEARCHB-01..10 (SEARCHB: basic, case-insensitive, wildcards, regex, DBCS) - SG.REPLACEB-01..10 (REPLACEB: basic, append, multi-byte, DBCS, bounds, zero count) - Update function-semantic-test-plan.md to reflect implemented status
show more ...
|
| 517a2e3b | 17-Nov-2026 |
Pedro Giffuni <pfg@apache.org> |
H.5: Implement ISO 8601 ISOWEEKNUM semantics
- Add SC_OPCODE_ISOWEEKNUM (416) and ocIsoWeekNum - Add ScIsoWeekNum() using Date::GetWeekOfYear(MONDAY, 4) - Register ISOWEEKNUM in ODF and Excel namesp
H.5: Implement ISO 8601 ISOWEEKNUM semantics
- Add SC_OPCODE_ISOWEEKNUM (416) and ocIsoWeekNum - Add ScIsoWeekNum() using Date::GetWeekOfYear(MONDAY, 4) - Register ISOWEEKNUM in ODF and Excel namespaces - Add Function Wizard entry (1 arg, no mode) - Add HID_FUNC_ISOWEEKNUM and help topic func_isoweeknum.xhp - Add calcval tests SG.ISO-01..25 (year boundaries, week 53, leap, century, time fractions) - WEEKNUM (ScGetWeekOfYear) unchanged: retains 2-arg SUN/MON mode - Update audit records
show more ...
|
| cf30ea8b | 17-Nov-2026 |
Pedro Giffuni <pfg@apache.org> |
H.4: Fix ERROR.TYPE error-code mapping, add help and tests
- Add MapErrorType() mapping internal AOO error codes to ODF 1-7 - Update ScErrorType() to return ERROR.TYPE values per ODF 1.4 - Add Engli
H.4: Fix ERROR.TYPE error-code mapping, add help and tests
- Add MapErrorType() mapping internal AOO error codes to ODF 1-7 - Update ScErrorType() to return ERROR.TYPE values per ODF 1.4 - Add English help topic func_errortype.xhp - Add calcval test cases SG.ERRTYPE-01..12 - Update audit records
show more ...
|
| 62e7f86e | 17-Nov-2026 |
Pedro Giffuni <pfg@apache.org> |
H.3.1: Complete DATEDIF semantics, help, and tests
- Correct md borrow, ym/yd anniversary handling, and signed arithmetic - Add ScDateDif declaration and help topic registration - Fix SG.DATEDIF-010
H.3.1: Complete DATEDIF semantics, help, and tests
- Correct md borrow, ym/yd anniversary handling, and signed arithmetic - Add ScDateDif declaration and help topic registration - Fix SG.DATEDIF-010-md expectation and expand DATEDIF calcval coverage - Update DATEDIF design and audit records
show more ...
|
| f8b15cbb | 17-Nov-2026 |
Pedro Giffuni <pfg@apache.org> |
impl: Add DATEDIF function (H.3)
Implement ODF 1.4 §6.10.3 DATEDIF natively in Calc:
- New opcode SC_OPCODE_DATEDIF = 415 (existing opcodes unchanged; STOP_2_PAR moved to 416, LAST_OPCODE_ID to 4
impl: Add DATEDIF function (H.3)
Implement ODF 1.4 §6.10.3 DATEDIF natively in Calc:
- New opcode SC_OPCODE_DATEDIF = 415 (existing opcodes unchanged; STOP_2_PAR moved to 416, LAST_OPCODE_ID to 415) - ScInterpreter::ScDateDif() evaluator in interpr2.cxx implementing all six formats (y, m, d, md, ym, yd) using calendar arithmetic (not day-count approximation) - Document-aware null date via pFormatter->GetNullDate() - Floor-based time fraction handling - Case-sensitive format matching with invalid format rejection - Reverse-date handling: y/m/d negated, md/ym/yd absolute - Function Wizard entry, help ID, and 15 regression test cases - Semantic design documented in audit/openformula-function-gaps/
No build or runtime testing performed (GCC 15.2 ABI incompatibility blocks AOO compilation). Runtime validation deferred.
show more ...
|
| 0224e3dc | 17-Nov-2026 |
Pedro Giffuni <pfg@apache.org> |
impl: Add NUMBERVALUE evaluator and FINDB/SEARCHB/REPLACEB functions (H.1, H.2)
Implement four missing Calc functions on the openformula branch:
1. NUMBERVALUE (ODF 1.4 §6.13.28) - evaluates text-t
impl: Add NUMBERVALUE evaluator and FINDB/SEARCHB/REPLACEB functions (H.1, H.2)
Implement four missing Calc functions on the openformula branch:
1. NUMBERVALUE (ODF 1.4 §6.13.28) - evaluates text-to-number with explicit decimal and group separators. Connects existing opcode 392 (ocNumberValue) to a new ScInterpreter::ScNumberValue() evaluator implementing whitespace removal, trailing percent handling (each % divides by 100), lenient group separator removal (no strict 3-digit rule), decimal-to-period replacement, and full-string consumption validation via ::rtl::math::stringToDouble. Locale defaults used for omitted/empty separators.
2. FINDB / SEARCHB / REPLACEB - byte-oriented text functions completing the existing LENB/LEFTB/RIGHTB/MIDB family. New opcodes 412-414 added at the end of the function range (existing opcodes unchanged to preserve XLS binary compatibility, where tokstack.cxx stores 8192+opcode_value). DBCS byte model (1 byte ASCII/non-DBCS, 2 bytes DBCS per IsDBCS()), consistent with existing B functions. FINDB case-sensitive, SEARCHB case-insensitive via utl::TextSearch, REPLACEB avoids splitting DBCS characters at boundaries.
Also adds Function Wizard documentation (scfuncs.src), help IDs (helpids.h, hidother.src), and 26 regression test cases (calcval-cases14.tsv).
show more ...
|
| 6a2f7420 | 16-Nov-2026 |
Pedro Giffuni <pfg@apache.org> |
fix: Correct CONVERT atm and Torr factors to ODF 1.4 Table 24
Correct atmospheric pressure conversion factors in Calc's CONVERT implementation (Analysis add-in) to match ODF 1.4 Part 4, Section 6.16
fix: Correct CONVERT atm and Torr factors to ODF 1.4 Table 24
Correct atmospheric pressure conversion factors in Calc's CONVERT implementation (Analysis add-in) to match ODF 1.4 Part 4, Section 6.16.18, Table 24:
- atm: 1 atm = 101325.1 Pa (factor was 9.8692329999819300E-06, now 9.86922292699439618E-06 = 1/101325.1) - Torr: 1 Torr = 101325/760 Pa exactly (factor was 7.5006380000000000E-03, now 7.50061682704169716E-03 = 760/101325) - SI_at: unchanged at 1.0197162129779282E-05 = 1/98066.5 (correct to 1 ULP)
The table stores reciprocal base-unit factors (1 Pa = X units), so the conversion algorithm result = input * dest_factor / source_factor remains unchanged.
Added 6 regression test cases covering both conversion directions for all three units plus cross-conversions (atm->Torr, SI_at->atm, Torr->SI_at).
show more ...
|
| 6f13be1d | 16-Nov-2026 |
Jim Jagielski <jimjag@gmail.com> |
sc: implement IFERROR as a jump function like IFNA |
| b3bfdbdc | 15-Nov-2026 |
Jim Jagielski <jimjag@gmail.com> |
sc: allow string literals up to 32767 characters in formulas |
| 4c0c4b04 | 14-Nov-2026 |
Jim Jagielski <jimjag@gmail.com> |
test/odf-validate: use one-column criteria arrays in the DCOUNT zero cases |
| ad46309f | 14-Nov-2026 |
Pedro Giffuni <pfg@apache.org> |
docs/tests: G.2 ScDBCount empty-cell fix — source-level implementation with regression tests
The DCOUNT/DCOUNTA empty-cell limitation is resolved at source level via CountRecords() (dociter.cxx:685-
docs/tests: G.2 ScDBCount empty-cell fix — source-level implementation with regression tests
The DCOUNT/DCOUNTA empty-cell limitation is resolved at source level via CountRecords() (dociter.cxx:685-716), used by ScDBCount() (interpr1.cxx:6871-6902) and ScDBCount2() (interpr1.cxx:6905-6935). CountRecords() iterates row-by-row via IsQueryValid(), counting all matching records regardless of cell emptiness — per ODF 1.4 §6.9.3/§6.9.4.
No production code changes needed — fix already in place via trunk commits rebased onto openformula. G.2 marked IMPLEMENTED (source-level) in milestone docs; semantic audit stale limitation statements removed.
Regression tests added to calcval-cases14.tsv: - DB.DCOUNT.f.zero: numeric zero vs empty with field (COUNT: 0 counts, empty does not) - DB.DCOUNT.nf.zero: zero vs empty without field (all matching records count) - DB.DCOUNTA.f.zero: zero vs empty with field for COUNTA (0 counts, empty does not)
Update openformula-milestone-g-sequence.md G.2 status to IMPLEMENTED. Remove stale G.2 limitation statements from openformula-small-group-semantic-audit.md. Update F-GAP-004 in semantic-gaps.tsv to reflect fix applied.
Runtime verification blocked: no AOO build tree available; calcval cannot run. git diff --check clean; TSV format valid.
show more ...
|
| 30877e27 | 13-Nov-2026 |
Jim Jagielski <jimjag@gmail.com> |
sc: do not count rows without content as records in DCOUNT and DCOUNTA
Without a field, blank rows in the database range matched "=" and "<>x". |
| b5a1b43b | 13-Nov-2026 |
Jim Jagielski <jimjag@gmail.com> |
sc: count every matching record in DCOUNT and DCOUNTA without a field
Records with an empty cell in a criteria column were missed. |
| c7c686a4 | 13-Nov-2026 |
Jim Jagielski <jimjag@gmail.com> |
sc: replace #N/A element-by-element when IFNA gets an array
The fallback is only evaluated if the array holds a #N/A. |