Where you can easily identify the PHP version that you're using. To be sure of the version of PHP that you're using, you can run this command from the CLI: php -v Verify which PHP version are you usingĪs first step, you need to know which PHP version are you using as you can't simply install any version of the extension with any PHP version. Follow these steps to get the bcmath extension running on your PHP distribution and finally install the PHP libraries that rely on this extension as moontoast/math. In some Ubuntu servers that aren't being correctly configured, this extension may be missing, but don't worry as you can easily install via the CLI running a simple command. This package is basically going to be a wrapper for these functions so that they can be used in an object oriented way. BCMath is set of PHP functions that allow to you to use Arbitrary-precision arithmetic. That's why this extension in PHP exists, to solve this problem. Thanks to the computers, you can easily run calculations on huge numbers with a high accuracy, however in some situations where the required amount of digits in the number exceeds the available memory of the computer, this high accuracy may be lower as expected nor may not work. A lot of packagist libraries that can be installed with composer require the famous bcmath extension.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |