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

        if ($this->input == 'si') {
            $div = [1, 10, 100, 1000, 1000000];
        } else {
            $div = [1, 12, 36, 7920, 63360];
        }

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

        if ($this->input == 'si') {
            $div = [1, 10, 100, 1000, 1000000];
        } else {
            $div = [1, 12, 36, 7920, 63360];
        }

        return (float) $input * $div[$format];
    }
protected function linearDownsize ( $ input = 0 , $ format = 0 ) { $ format = ( int ) $ this -> validUnit ( 4 , $ format ) ; if ( $ this -> input == 'si' ) { $ div = [ 1 , 10 , 100 , 1000 , 1000000 ] ; } else { $ div = [ 1 , 12 , 36 , 7920 , 63360 ] ; } return ( float ) $ input * $ div [ $ format ] ; }
This method is intend to convert a linear value to mm|in.

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

@example
(input/output)$format:
0: mm|in,
1: cm|ft,
2: dm|yd,
3: m|fur,
4: km|mi

@author Benjamin Carl <opensource@clickalicious.de>

@return float The converted result
This method is intend to convert a linear value to mm|in .