Return the value of the feature.

        If the unit is specified and the feature has a unit, the value is converted

        Args:
        - unit(str,optional): A unit to convert the current feature value ('B','K','M','G')

def getValue(self, unit=None):
        """
        Return the value of the feature.

        If the unit is specified and the feature has a unit, the value is converted

        Args:
        - unit(str,optional): A unit to convert the current feature value ('B','K','M','G')
        """

        if unit or self.unit:
            r = float(self.value * UnitToValue(self.unit)) / UnitToValue(unit)
            return int(round(r)) if isinstance(self.value, int) else r
        return self.value