annual and semiannual interest rate

when should we compound, and when should we divide it by 2? for example, one year interest rate is 10% when we use 6 month rate as 10%/2=5% or (1+10%)^0.2-1 ? thanks.

when you are told that the rate is a semi-annual compounding rate