protected function liquidDownsize($input = 0, $format = 0)
    {
        $format = (int) $this->validUnit(7, $format);

        if ($this->input == 'si') {
            $div = [1, 10, 100, 1000, 10000, 100000, 100000, 100000];
        } else {
            $div = [1, 7680, 61440, 245760, 983040, 1966080, 7864320, 330301440];
        }

        return (float) $input * $div[$format];
    }
protected function liquidDownsize($input = 0, $format = 0)
    {
        $format = (int) $this->validUnit(7, $format);

        if ($this->input == 'si') {
            $div = [1, 10, 100, 1000, 10000, 100000, 100000, 100000];
        } else {
            $div = [1, 7680, 61440, 245760, 983040, 1966080, 7864320, 330301440];
        }

        return (float) $input * $div[$format];
    }
protected function liquidDownsize ( $ input = 0 , $ format = 0 ) { $ format = ( int ) $ this -> validUnit ( 7 , $ format ) ; if ( $ this -> input == 'si' ) { $ div = [ 1 , 10 , 100 , 1000 , 10000 , 100000 , 100000 , 100000 ] ; } else { $ div = [ 1 , 7680 , 61440 , 245760 , 983040 , 1966080 , 7864320 , 330301440 ] ; } return ( float ) $ input * $ div [ $ format ] ; }
This method is intend to convert a liquid value to ml|min.

@param int $input  The input to convert
@param int $format The format to use for conversion

@example
(input)$format:
0: ml|min,
1: cl|fldr,
2: dl|floz,
3: l|gi,
4: dal|pt,
5: hl|qt,
6: hl|gal,
7: hl|barrel

@author Benjamin Carl <opensource@clickalicious.de>

@return float The converted result
This method is intend to convert a liquid value to ml|min .