You get a bonus - 1 coin for daily activity. Now you have 1 coin

Fatal error: Call to undefined function bcscale() php7

Practice



this error occurs when the bcscale function is missing

bcscale — Sets the default number of digits after the decimal point for all bc math functions.

to install it you need to run the commands

$ sudo apt-get install php5-bcmath

or

$ sudo apt-get install php7-bcmath

or

$ sudo apt install php-bcmath

and restart

service php7.0-fpm restart

created: 2017-05-27
updated: 2026-03-09
1344



Was this answer useful?
Choose a quick rating so we can improve the next answer for you.
How satisfied are you?


Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Running server side scripts using PHP as an example (LAMP)"

Terms: Running server side scripts using PHP as an example (LAMP)