The new law gives grocers and other merchants a legal basis for rounding retail cash transactions as pennies disappear.