What bowing means in the rest of the world, in Japans is different.
So, if you have on mind visiting Japan, bring protractor and pay attention to following details so you don’t be misunderstood. Bow under 5 degrees angle is saying hello to somebody, under wider angle means more official greeting and bow under 30 degrees is being thankful to somebody. If you are bowing under 45 degrees you are showing somebody deep respect or saying you are very sorry.