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

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow Brick\Math

Brick\Math Web Site

Other Useful Business Software
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Brick\Math!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Libraries

Registered

2025-05-22