Despite TypeScript offering static type checking a web service I’m working with returns strings instead of numbers so the types I think I’m working with were exhibiting strange behaviour with arithmetic operations.