What are people saying when I buy something using the exact change? When I buy something and give the exact change, the cashier will almost always say "[something] hǎo", but I'm not sure what [something] is.

Question: What are people saying when I buy something using the exact change?

It sounds like "gèng hǎo" or "zhàng hǎo" or something along these lines.  It might possibly be 更好, or it could be something else.  I'm not sure.
It is most likely "剛好" [gang1 hao3] - "just exactly right"

Short for : "不多，不少， 剛剛好"  (not more, not less, just exactly right) 

The cashier say that to confirm it is the exact amount of money for the purchase (so the purchase is accepted, but no change will be given)

Or 

It could be "正好"  [zheng4 hao3] - "just exactly right"

Short for : 正好 (X amount) - confirming the amount of money you give him or her is the exact amount for the purchase

Chances are, you heard them both in different time from different cashiers. Both are what a cashier could say when someone pays with exact change.