It works for any function continuous at a... after all that is the definition of continuity.
If you believe that is continuous around 0, you can substitute.
thats really helpful, thanks, just one quick question though, do we take it that sin x is always equal to 0 or was there something else i missed?
thanks again