Not quite in the USA you buy three items that end in 99c, but two of them have state sales tax, one of those has local sales tax and the other has a liquor tax.
SO you can work out the change IF you know the random extra amount that will be added at the checkout