public static function TtcToHt($price, $tax, bool $taxIsPercent = false)
    {
        if ($taxIsPercent) {
            $tax = $tax / 100;
        }
        return $price / (1 + $tax);
    }
public static function TtcToHt($price, $tax, bool $taxIsPercent = false)
    {
        if ($taxIsPercent) {
            $tax = $tax / 100;
        }
        return $price / (1 + $tax);
    }
public static function TtcToHt ( $ price , $ tax , bool $ taxIsPercent = false ) { if ( $ taxIsPercent ) { $ tax = $ tax / 100 ; } return $ price / ( 1 + $ tax ) ; }
TTC to HT transformation
@param float $price
@param float $tax
@param bool $taxIsPercent
@return float
TTC to HT transformation