Zillur Rahman, the president of Bangladesh, has died in a hospital in Singapore following a long illness.