src/Money/Money.php
private function setFraction($amount)
    {
        $doubleFraction = $amount * 100;
        $intFraction = ($this->round(abs($doubleFraction))) % 100;
        if($intFraction < 0)
            $intFraction = -$intFraction;
        $this->fraction = $intFraction;
    }
private function setFraction($amount)
    {
        $doubleFraction = $amount * 100;
        $intFraction = ($this->round(abs($doubleFraction))) % 100;
        if($intFraction < 0)
            $intFraction = -$intFraction;
        $this->fraction = $intFraction;
    }
private function setFraction ( $ amount ) { $ doubleFraction = $ amount * 100 ; $ intFraction = ( $ this -> round ( abs ( $ doubleFraction ) ) ) % 100 ; if ( $ intFraction < 0 ) $ intFraction = - $ intFraction ; $ this -> fraction = $ intFraction ; }
Sets the fractional part of the money

@param $amount
@return void
Sets the fractional part of the money