Skip to main content
0 votes
0 answers
21 views

I don't understand the dependency problem. PHP8.3-common is installed but version 8.3.29 I can't understand why it seems to be asking for 8.3.6 root@choir:~# php -v PHP 8.3.29 (cli) (built: Dec 18 ...
David's user avatar
  • 1
0 votes
1 answer
85 views

Why is this outputting 0.99 and not 1? <?php echo bcmul("2.54", "0.3937007874015748", 2); // 0.99 echo 2.54 * 0.3937007874015748; // 1 ?> My PHP Version 7.4.33
sarfaraj's user avatar
0 votes
1 answer
337 views

I am trying to enable bcmath php extension on heroku using composer.json file as per documentation instructions article. When try to build i got error remote: Problem 1 remote: - Root composer....
Noman Hameed's user avatar
1 vote
1 answer
3k views

I need to install the bcmath module because it is necessary for the wordpress ip2location plugin but I'm finding it impossible. I have followed other similar posts and nothing has worked. I am using ...
Miguel Heredia's user avatar
0 votes
0 answers
16 views

I'm working with decimal values that can have more decimal digits than the float type, so I have to use bcmath functions. My problem is that standard calculators like in Windows, Android or PHP ...
root66's user avatar
  • 605
1 vote
0 answers
177 views

I'm trying to use the PHP bcmath library to handle the problem of rounding errors in PHP. My code: $usdPerCoin = 2755905; $amountToConvert = 1000; function toFixed(string $number, int $precision = 8):...
gamedev's user avatar
  • 105
2 votes
0 answers
521 views

There is a server on Ubuntu 18. Worth nginx and php 7.4 I need to install php7.4-bcmath Command: "sudo apt-get install php7.4-bcmath" keeps giving error: Reading package lists... Done ...
Alexander Drobotov's user avatar
0 votes
1 answer
101 views

Are PHP BC Math functions automatically converting integers and flaots to strings? The example below works fine on PHP 7.4 on windows, but some people claim that BC Math only accepts strings as input. ...
Jimski's user avatar
  • 1,040
0 votes
1 answer
1k views

$ php -i | grep -i bcmath PHP Warning: Module "gd" is already loaded in Unknown on line 0 /etc/php/8.2/cli/conf.d/20-bcmath.ini, bcmath BCMath support => enabled bcmath.scale => 1 =&...
Anuraag Moharana's user avatar
0 votes
1 answer
135 views

i am writing a class that does simple bcmath operations on numbers. tho i need to set the scale automatically throughout this so i need a way to determine how many significant digits a number has. for ...
محمدرضا خدامی's user avatar
0 votes
0 answers
368 views

If I use a bcmath function, they all take values as strings and return a string. I have several functions that use bcmath in order to work on monetary values. The database stores these values as a ...
objecttothis's user avatar
0 votes
0 answers
397 views

So I am trying to install the bcmath module and it seems to have worked but when I check my phpinfo it says it is not on there. This is the output I get when I do php -m [PHP Modules] bcmath bz2 ...
Collin Stewart's user avatar
0 votes
0 answers
261 views

I'm trying to do precise arithmetics calculations inside a Twig template, but I am struggling with floating point's precision error and I can't find a way to solve this. Is there a way to solve this ...
Agnohendrix's user avatar
0 votes
1 answer
183 views

I am trying the below mentioned code(PHP) to find probability. The calculation includes combination calculation of large numbers, using BCmaths function but not getting results. Please suggest, how ...
Indra Kundu's user avatar
6 votes
2 answers
11k views

I working on the few of the small decimals like 0.0000687, 0.0000063241, 0.0000454. I used BCMath as to get the most precise result because it involved with money calculation, so far BCMath it is very ...
Lejiend's user avatar
  • 1,309

15 30 50 per page
1
2 3 4 5
7