KAMPALA, Uganda  With the announcement of final voting results, President Omar Hassan al-Bashir of Sudan said Monday that his government would accept the choice of the long-embattled region of southern Sudan to separate from the north, setting the stage for the creation of the world’s newest country this summer.

According to the final count, announced in Sudan’s capital, Khartoum, 98.83 percent of the more than 3.8 million registered voters in southern Sudan chose to separate from the north. In many parts of the country the vote was over 99 percent.

Sudan has endured two long and brutal civil wars between the Arab north and the mostly animist and Christian south, in a period from the early years of independence from Britain to 2005, when a peace agreement was signed, setting the stage for the referendum.

Both President Bashir and the southern region’s president, Salva Kiir, were in attendance for the announcement as street celebrations spread through the southern capital, Juba.