Brick Math is a PHP library that provides arbitrary-precision arithmetic for integers, rational numbers, and decimal numbers. It is designed to overcome the limitations of PHP’s native number handling, especially for applications dealing with large numbers, financial calculations, or scientific computations. Brick Math complies with standards like IEEE 754 and avoids rounding errors inherent to floating-point arithmetic.
Features
- Arbitrary-precision integer, decimal, and rational number support
- Immutable objects for safe mathematical operations
- Standards-compliant decimal arithmetic (IEEE 754)
- Accurate and safe financial and scientific calculations
- Conversion between integers, floats, and strings
- No dependencies and compatible with any PHP project
Categories
LibrariesLicense
MIT LicenseFollow Brick\Math
Other Useful Business Software
Managed MySQL, PostgreSQL, and SQL Databases on Google Cloud
Cloud SQL is a fully managed relational database for MySQL, PostgreSQL, and SQL Server. We handle patching, backups, replication, encryption, and failover—so you can focus on your app. Migrate from on-prem or other clouds with free Database Migration Service. IDC found customers achieved 246% ROI. New customers get $300 in credits plus a 30-day free trial.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Brick\Math!