Description
All financial calculations need fixed-point arithmetic with 7 decimal places (i128) for precision.
Requirements
- Implement math module in
common/src/math.rs
- Add fixed-point operations: add, subtract, multiply, divide
- Add overflow protection
- Add tests for edge cases
Acceptance Criteria
Priority
High
Description
All financial calculations need fixed-point arithmetic with 7 decimal places (i128) for precision.
Requirements
common/src/math.rsAcceptance Criteria
Priority
High