roave/no-floaters: phpstan rules to prevent float state proliferation
github.com/Roave/no-floaters/releases/tag/1.0.0Posted Jan 9, 2019, 2:41 PM UTC
2012
Posted Jan 9, 2019, 2:41 PM UTC
Is there an alternative to floats you would recommend?
To complement the comment above: Money for… money.
You can work with ext-bcmath, and always specify the precision
It's actually the scale (places behind the decimal point). Precision is significant digits.
I've had a good experience with brick/math.
You can use the decimal extension. See http://php-decimal.io
not acceptable in certain business logic scenario, such as dealing with money, evaluating exam results, rocket science, etc.
Rocket science in PHP? Sounds fun :p
What an amazing name
Thanks: I was feeling inspired :-P
.. inspired by what?
I'll leave that as an exercise to the documentation reader.
The image is flawless.