You can reach the fpmath library:
- Fixed-Point Representation: Enables accurate representation of fractional numbers, overcoming the limitations of floating-point arithmetic in precision-sensitive applications.
- Arithmetic Operations: Provides a suite of mathematical operations (addition, subtraction, multiplication, division, exponential, power, logarithm) optimized for fixed-point numbers, ensuring both accuracy and efficiency.
- Performance Optimization: The library is designed with performance in mind, minimizing computational overhead and enhancing the speed of numerical calculations in smart contracts.
- Easy Integration: Seamlessly integrates with existing FE development workflows and frameworks, offering a user-friendly interface and straightforward implementation.
- Enhance numerical precision in blockchain applications.
- Provide a robust and efficient toolset for fixed-point arithmetic in FE development.
- Foster the development of scientific computing on smart contract development.
- Expansion to support more complex mathematical functions that are intensively used in finance.