Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
In addition to the essential advice above to use Integers of the lowest denomination to store prices, you can also look into using a library to help with all the money math, conversions, comparisons etc https://github.com/moneyphp/money
NOTE:
The number of mentions on this list indicates mentions on common posts plus user suggested alternatives.
Hence, a higher number means a more popular project.
Related posts
- Why should you not compare floats directly for equality?
- Should I store the total price of an order or re-calculate it on-demand every time?
- Trying to create a interface to abstract moneyPHP lib usage
- MoneyPHP 4.0 released - it's PHP 8 compatible!
- Handle all the hard stuff related to EU MOSS tax/vat regulations, the way it should be. Fork of mpociot/vat-calculator, standalone, PHP 7.3+, modernized, with more features.