def get_clean_quantity(self, quantity=1):
        try:
            quantity = abs(core_utils.atof(str(quantity)))
        except (TypeError, ValueError):
            quantity = 1.0

        type_of_quantity_field = self.get_type_of_quantity_field()
        if type_of_quantity_field == QUANTITY_FIELD_INTEGER:
            quantity = int(quantity)
        elif type_of_quantity_field == QUANTITY_FIELD_DECIMAL_1:
            quantity = locale.format("%.1f", quantity)
        else:
            quantity = locale.format("%.2f", quantity)

        return quantity
The 'left' component of the box.
dataset/ETHPy150Open diefenbach/django-lfs/lfs/catalog/models.py/Product.get_clean_quantity--crossover with--dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/layout/geometry.py/BaseBox.left