Roger Federer said he was not that bothered about Serbia's Novak Djokovic closing in on his ranking as world number two.

"I'm going to sleep well for a month. He (Djokovic) is not going to pass me anytime soon," Federer said.

"For me, honestly, ranking two, three, four, five, 25, it doesn't really matter a whole lot, you know. For me it is either number one or being in the main draw," added the Swiss.

Djokovic, who won the Masters Cup in Shanghai last weekend, is just 10 points shy of Federer in the world rankings.

Federer was in the Malaysian capital for an exhibition event which also featured world number 10 James Blake and former tennis greats John McEnroe and Bjorn Borg.

Last week, Federer, complaining of injury and a stomach bug, lost to Briton Andy Murray at the Masters Cup in Shanghai.

The Shanghai loss was Federer's 15th in a season when he lost his world number one ranking and Wimbledon title to Spain's Rafael Nadal, prompting speculation that he had lost his edge.

Federer, who has won 13 grand slams, told reporters that at 27 he was still confident he had "many more years" of tennis left in him.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.