If a dollar figure is rounded to the nearest dollar, it should be written without cents.
For example: She borrowed $20 from me.
If there is change, include cents.
For example: The cashier gave me $20.35 back.