I’m converting from meters/second to kilometers/hour. Very straighforward, right?
So, 9.4 * 3.6 = 33.84, right? Well, step forward with the debugger, and…
0.03127079174983367!?
This is happening using Node.js v14.16.0. I’m going to update my Node.js version and see if that helps, but this is very weird. I’m using TypeScript, so I suppose this could also be a transpilation error.
If I use conditions.windSpeed = conditions.windSpeed * 3.6
the problem goes away.