public function toHours($d)
    {
        $v = $this->getValue();
        if ($v < self::HOURS) {
            return $d/($this->c5/$this->{'c'.$v});
        } else {
            return $this->x($d, $this->{'c'.$v}/$this->c5, PHP_INT_MAX/($this->{'c'.$v}/$this->c5));
        }
    }
public function toHours($d)
    {
        $v = $this->getValue();
        if ($v < self::HOURS) {
            return $d/($this->c5/$this->{'c'.$v});
        } else {
            return $this->x($d, $this->{'c'.$v}/$this->c5, PHP_INT_MAX/($this->{'c'.$v}/$this->c5));
        }
    }
public function toHours ( $ d ) { $ v = $ this -> getValue ( ) ; if ( $ v < self :: HOURS ) { return $ d / ( $ this -> c5 / $ this -> { 'c' . $ v } ) ; } else { return $ this -> x ( $ d , $ this -> { 'c' . $ v } / $ this -> c5 , PHP_INT_MAX / ( $ this -> { 'c' . $ v } / $ this -> c5 ) ) ; } }
Convert to hours

@param int $d
@return float|int
Convert to hours