How do I enable the bcdiv function in PHP 7.0?

Solution 1:

  1. Install module bcmath

    sudo apt-get install php-bcmath
    

(note: on ubuntu 16.04^ with PHP 7.0^ use php7.0-bcmath package instead)

  1. Restart apache service eventually

    sudo service apache2 restart
    

Solution 2:

Install module bcmath in PHP 7.0, you should try:

sudo apt-get install php7.0-bcmath

And restart php engine or apache