Files
Jhonathan Abreu 38a78c411a
Python Virtual Environments / build (push) Has been cancelled
API Tests / build (push) Has been cancelled
Benchmarks / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled
Report Generator Tests / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
Syntax Tests / build (push) Has been cancelled
Add arithmetic operators to numeric MultiPeriodField classes (#9571)
* Add arithmetic operators to numeric MultiPeriodField classes

Implement +, -, *, / and % operators on the numeric MultiPeriodField
and MultiPeriodFieldLong base classes so fundamental fields can be
combined arithmetically. Operators act on each field's default-period
Value and return decimal, consistent with the existing implicit decimal
conversion. Includes unit tests covering field-to-field and
field-to-scalar arithmetic for both base classes.

* Add cross-type operators between double and long backed fields

Support arithmetic between the double-backed MultiPeriodField and the
long-backed MultiPeriodFieldLong by adding the mixed-type operator
overloads (both orderings) for +, -, *, / and %. Includes a unit test
covering double/long arithmetic in both directions.
2026-06-30 14:06:38 -04:00
..
2024-07-10 14:17:27 -03:00
2024-07-09 11:08:42 -03:00
2019-10-01 00:26:36 -03:00