protected function shouldSetBaseTen($unit)
    {
        $unitMatchesIec = preg_match(UnitResolver::IEC_PATTERN, $unit);
        return
            ($this->from == 'B' && !$unitMatchesIec) ||
            (preg_match(UnitResolver::SI_PATTERN, $this->from) && !$unitMatchesIec);
    }
protected function shouldSetBaseTen($unit)
    {
        $unitMatchesIec = preg_match(UnitResolver::IEC_PATTERN, $unit);
        return
            ($this->from == 'B' && !$unitMatchesIec) ||
            (preg_match(UnitResolver::SI_PATTERN, $this->from) && !$unitMatchesIec);
    }
protected function shouldSetBaseTen ( $ unit ) { $ unitMatchesIec = preg_match ( UnitResolver :: IEC_PATTERN , $ unit ) ; return ( $ this -> from == 'B' && ! $ unitMatchesIec ) || ( preg_match ( UnitResolver :: SI_PATTERN , $ this -> from ) && ! $ unitMatchesIec ) ; }
Match from against the unit to see if
the base should be set to 10

@param $unit
@return bool
Match from against the unit to see if the base should be set to 10