Yes, that's the way to deal with it, rounding up or down.
And to Booth's question, if cents are disappearing because people are hoarding them, the people doing that are as idiotic as the U.S. coinage and currency system. There have been literally hundreds of billions of pennies minted since the Lincoln Memorial reverse began in 1959. They don't circulate, in fact the average coin in general barely circulates now compared to how they used to. Those hundreds of billions of cents will never have numismatic value, and if someone wants to hoard thousands of copper and zinc pennies in the hope that they can make money by having them melted for the metallic content at some point, good luck.
The penny should have been discontinued 40 or more years ago when it became worthless. Nickels too. Just round everything up or down to the nearest dime or quarter.
The dollar bill should have been discontinued when the hideous looking Anthony dollar coin was introduced in 1979. That was the only way they were going to circulate, but instead the imbeciles in Congress and the Treasury are still minting dollar coins nearly a half century on, and a half century on they still don't circulate. Every country that eliminated a paper currency in favor of a coin of the same nominal value eliminated the paper equivalent except for one.
To accommodate the realities of non-stop inflation over the years, the U.S. should have the dime and quarter as coins along with a dollar coin, a five dollar coin and a ten dollar coin. The half dollar circulated until the JFK design replaced the Franklin half and they were instantly hoarded. Of course they were also made of silver in their initial year of 1964 and 40% silver from 1965 through 1970. All silver coins quickly disappeared from circulation with the advent of clad coinage in 1965. Now the half dollar is commonly viewed as too large and cumbersome and won't circulate again unless its size is substantially reduced.
Paper money below the twenty dollar bill should be eliminated. The thousand dollar bill should be reintroduced (yes, they used to circulate; currently they're banned because of money laundering concerns supposedly). Then the U.S. would have a coin and currency system more fit for the 21st century instead of the current holdover one from the 19th century.