PHP code example of enimiste / math

1. Go to this page and download the library: Download enimiste/math 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/ */

    

enimiste / math example snippets


$ints[] = new Enimiste\Math\VO\IntegerNumber(1);

$ints[] = new Enimiste\Math\VO\IntegerNumber(1.0);

$ints[] = new Enimiste\Math\VO\IntegerNumber('1');

$ints[] = new Enimiste\Math\VO\IntegerNumber(1.39);

$ints[] = new Enimiste\Math\VO\IntegerNumber(1.7);

$ints[] = new Enimiste\Math\VO\IntegerNumber(-3);

foreach($ints as $x) { 
    echo $x->getValue(); 
    echo $x->getOrigin(); 
    echo $x->__toString(); 
}