src/Tools.php
public static function valorPeloFator($fator, $dec = 2)
    {
        $div = pow(10, $dec);
        $base = intval(round($fator, 0));

        return $base / $div;
    }
public static function valorPeloFator($fator, $dec = 2)
    {
        $div = pow(10, $dec);
        $base = intval(round($fator, 0));

        return $base / $div;
    }
public static function valorPeloFator ( $ fator , $ dec = 2 ) { $ div = pow ( 10 , $ dec ) ; $ base = intval ( round ( $ fator , 0 ) ) ; return $ base / $ div ; }
Retorna o valor pelo fator de valor.

@param $fator
@param int $dec
@return float
Retorna o valor pelo fator de valor .