"Our Atomic Energy Organization is fully prepared ... for actions that they expect and actions they do not expect," Rouhani said without elaborating in a speech carried by state television, referring to a possible decision by Trump to leave the accord next month.
The deal reached between Iran, the United States and five other world powers put curbs on Iran's nuclear programme in exchange for sanctions relief.
Trump has called the agreement one of the worst deals ever negotiated. In January he sent an ultimatum to Britain, France and Germany, saying they must agree to fix what the United States sees as the deal's flaws or he would refuse to extend the critical US sanctions relief that it entails.
US disarmament ambassador Robert Wood said on Thursday Washington had been having "intense" discussions with European allies ahead of the May 12 deadline, when US sanctions against Iran will resume unless Trump issues new waivers to suspend them.
Iran has said it will stick to the accord as long as the other parties respect it, but will "shred" the deal if Washington pulls out.
"Iran has several options if the United States leaves the nuclear deal. Tehran's reaction to America's withdrawal of the deal will be unpleasant," Iranian state TV quoted Iranian Foreign Minister Mohammad Javad Zarif as saying in New York.
Rouhani said his government intended to prevent instability in the foreign exchange market after a possible Washington exit from the nuclear accord when the central bank this month slapped controls on markets in an attempt to unify the Iranian rial.
"This was a preventative blow against any American decision on May 12. They fully hoped to ... cause chaos in the (foreign exchange) market. I promise to the people that the plot of the enemy has been thwarted, and whether or not the nuclear deal remains in effect, we will have no problem," Rouhani said.
On April 9, Iran moved to formally unify the country's official and open market exchange rates and banned money changing outside of banks, after its currency, the rial, plunged to an all-time low on concerns over a return of crippling sanctions.
(This story has not been edited by NDTV staff and is auto-generated from a syndicated feed.)