You're right that limw->0 sin(wt)/w = t, because for small values of x, sin(x) is increasingly close to x,
but unfortunately limt->0 sin(wt)/w=0 because sin(0)=0
@Buildout has a good solution for the computation problem - a math library with sinc will compute t sinc(wt) much better than trying to compute sin(wt)/w for small values of w.
I don't know what's going on in the real world context when w or t are zero - this is an interesting question. Are either or both of them likely to actually be zero (or close enough that your processor uses zero to represent the number)? If so, can we deduce whether f(0,0)=1 or f(0,0)=0 is a better answer? Maybe f(0,0)=0 gives more surprising and jerky behaviour than f(0,0)=1, but I can't be certain of that.