Brick\Math Alternatives
Similar projects and alternatives to Brick\Math
-
-
-
Cloudways
Managed Cloud Hosting Platform. Cloudways leverages advanced technology and powerful servers. Cloudways is a one-click managed cloud hosting platform that provides cloud application and server management solutions.
-
-
break_infinity.js
A replacement for decimal.js for incremental games who want to deal with very large numbers (bigger in magnitude than 1e308, up to as much as 1e(9e15) ) and want to prioritize speed over accuracy.
-
decimal-object
Decimal handling as value object instead of plain strings.
-
-
PHP Units of Measure
A library for handling physical quantities and the units of measure in which they're represented.
-
JetBrains
Developer Ecosystem Survey 2022. Take part in the Developer Ecosystem Survey 2022 by JetBrains and get a chance to win a Macbook, a Nvidia graphics card, or other prizes. We’ll create an infographic full of stats, and you’ll get personalized results so you can compare yourself with other developers.
-
fig-standards
Standards either proposed or approved by the Framework Interop Group
-
ip
Immutable value object for IPv4 and IPv6 addresses, including helper methods and Doctrine support. (by darsyn)
-
Fermat
A library providing math and statistics operations for numbers of arbitrary size.
Brick\Math reviews and mentions
- Weekly "ask anything" thread
-
What are the latest thoughts on storing and working with very large and very small financial transactions?
I decided to use https://github.com/brick/math and store the amount as a string in the database. My project use NANO, so that's 30 decimal points to keep. Number type column is not the choice at all.
-
Vote for enums in PHP 8.1 has started — looking good so far!
There are many use cases where enums don't need to be backed by a scalar. I'm thinking of brick/math's RoundingMode for example: you use these in code, but never store/serialize them really.
-
(int) (round(19.33, 2) * 100) = 1932 - can someone please explain this to me?
Besides, using an arbitrary-precision library gives you an unlimited number of digits, and, in the case of brick/math, many more rounding modes to choose from. And predictable ones.
TL;DR: don't use floats if you ever need to rely on rounding. Use an arbitrary-precision arithmetic library such as brick/math. Example:
Stats
brick/math is an open source project licensed under MIT License which is an OSI approved license.
Popular Comparisons
Are you hiring? Post a new remote job listing for free.