The rounding is baked into the law.
> I.R.C. § 219(b)(5)(C)(ii) Rounding Rules — If any amount after adjustment under clause (i) is not a multiple of $500, such amount shall be rounded to the next lower multiple of $500.
https://irc.bloombergtax.com/public/uscode/doc/irc/section_2...