-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why is the trimming of trailing zeroes enforced by the functions? #36
Comments
I assume they are useless (as they usually are) and in my case scenario I din't need them. Sure can add as feature to disable this. I prefer to use composition then class extending but sure this can be changed. |
Thank you!:) In my scenario, we are calculating with the same precision as we are displaying values in, and I prefer that all the numbers that are displayed be equally long, that's why it is useless for me:) Btw, this is a very nice little plugin, and it would have been a shame not using it. |
- added ability to trim trailing zeros (#36) - little code cleanup
Changes in master is see one problem that not all bc function supports keeping zeros depends of version of php 😢 In future I will try to add addTRailingZeroFunction 😞 |
ok I put few 🩹 🩹 🩹 on code and Its working I "love" to use if php version > some number to keep this code working.. |
tak 5.2.0 released |
I can't understand why would you enforce the trimming of the trailing zeroes after the decimal point?
A global setting, or something simmilar, that can disable this would be nice. Additionally, the class is not extendable at all, as you are calling the static methods with the
self::
instead of thestatic::
caller.The text was updated successfully, but these errors were encountered: