-
Notifications
You must be signed in to change notification settings - Fork 29
Closed
Description
Description
Refactor the volatility/utils file to replace all occurrences of the f64 type with the Decimal type. This change aims to improve precision in numerical calculations and aligns with the project's standard for handling financial data.
Tasks
Code Changes:
- Identify all instances of
f64in thevolatility/utilsfile. - Replace each instance of
f64with theDecimaltype. - Update any functions or methods where
f64is used to ensure compatibility withDecimal.
Testing:
- Verify that all affected functions continue to work correctly after the change.
- Update or add unit tests to validate calculations using
Decimalinstead off64.
Documentation:
- Update any comments or documentation within the code that mention
f64. - Ensure the project's documentation reflects the use of
Decimalinvolatility/utils.
Additional Notes
- Ensure the
Decimaltype is properly imported and used consistently throughout the file. - Be mindful of potential performance impacts due to the change from
f64toDecimal. - If external libraries or functions depend on
f64, update or wrap those calls to handleDecimalas needed.
Labels
refactor, enhancement, precision, testing, documentation
Metadata
Metadata
Assignees
Labels
No labels