In Canada, the rounding is done after tax, and only affects what the cash-paying customer or vendor receives. The sales tax amount is not affected.