PHP code example of webit / bcmath
1. Go to this page and download the library: Download webit/bcmath library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
webit / bcmath example snippets
$num = new BcMathNumber('123.1233');
$result = $num->add('13.22')->mul('3.05');
echo $result . "\n";