PHP code example of whateverthing / qed
1. Go to this page and download the library: Download whateverthing/qed 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/ */
whateverthing / qed example snippets
$num = new Qed('123');
$num = $num->add('27')->mul('4');
echo $num->value; // 600
$num = new Qed('123', 5);
$divisor = new Qed('456');
$num = $num->div($divisor)->mul('10');
echo $num->value; // 2.69730
$num = new Qed('123', 10);
$divisor = new Qed('456');
$num = $num->div($divisor)->mul('10')->round(2);
echo $num->value; // 2.70