public function temperature($input = 0)
    {
        $input = (float) $input;

        if ($this->input == 'si' && $this->output == 'si') {
            $this->displayFormat = 'C';
            $output              = (float) $input;
        } elseif ($this->input == 'si' && $this->output == 'uscs') {
            $this->displayFormat = 'F';
            $output              = (float) ((($input / 5) * 9) + 32);
        } elseif ($this->input == 'uscs' && $this->output == 'si') {
            $this->displayFormat = 'C';
            $output              = (float) ((($input - 32) / 9) * 5);
        } elseif ($this->input == 'uscs' && $this->output == 'uscs') {
            $this->displayFormat = 'F';
            $output              = (float) $input;
        }

        return (float) $output;
    }
public function temperature($input = 0)
    {
        $input = (float) $input;

        if ($this->input == 'si' && $this->output == 'si') {
            $this->displayFormat = 'C';
            $output              = (float) $input;
        } elseif ($this->input == 'si' && $this->output == 'uscs') {
            $this->displayFormat = 'F';
            $output              = (float) ((($input / 5) * 9) + 32);
        } elseif ($this->input == 'uscs' && $this->output == 'si') {
            $this->displayFormat = 'C';
            $output              = (float) ((($input - 32) / 9) * 5);
        } elseif ($this->input == 'uscs' && $this->output == 'uscs') {
            $this->displayFormat = 'F';
            $output              = (float) $input;
        }

        return (float) $output;
    }
public function temperature ( $ input = 0 ) { $ input = ( float ) $ input ; if ( $ this -> input == 'si' && $ this -> output == 'si' ) { $ this -> displayFormat = 'C' ; $ output = ( float ) $ input ; } elseif ( $ this -> input == 'si' && $ this -> output == 'uscs' ) { $ this -> displayFormat = 'F' ; $ output = ( float ) ( ( ( $ input / 5 ) * 9 ) + 32 ) ; } elseif ( $ this -> input == 'uscs' && $ this -> output == 'si' ) { $ this -> displayFormat = 'C' ; $ output = ( float ) ( ( ( $ input - 32 ) / 9 ) * 5 ) ; } elseif ( $ this -> input == 'uscs' && $ this -> output == 'uscs' ) { $ this -> displayFormat = 'F' ; $ output = ( float ) $ input ; } return ( float ) $ output ; }
This method is intend to convert a temperature value from the input system to the output system.

@param int $input The input

@author Benjamin Carl <opensource@clickalicious.de>

@return float The result of the conversion
This method is intend to convert a temperature value from the input system to the output system .