PHP code example of antonvlasenko / decimal
1. Go to this page and download the library: Download antonvlasenko/decimal 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/ */
antonvlasenko / decimal example snippets
use AntonVlasenko\Decimal\Decimal;
Decimal::$SCALE = 20; // Sets precision
$decimal = new Decimal('5e2');
echo $decimal->divideBy(3);
// 166.66666666666666666666