Tip Calculator : Frontend Coding Exercise

Okay so the actual problem here is how floating point numbers get represented. the browser isn’t actually storing 0.1 it’s storing something super close to it, which adds up when you do a bunch of math.