difference between XR AND non xr kinda metformin.

which is better long term control er/ xr/non xr
I was on the regular metformin when first officially diagnosed, had many side effects that I thought would never pass, so doctor gave the ER version and much better, easier on the stomach and my numbers are great, well the A1C is since once in while for 'just because' I can spike when I eat something that I did ok on before