Number methods in TypeScript