Scenario: On my server a stripe payment intent is created for customer orders. The amount needs to be multiplied by 100 to meet stripes format. The problem is the amount of the order is always different and isn't always a whole integer.
When I am doing say:
const amount = 323.78 * 100
I do not get the answer I need, I get 32377.999999999996, when I need 32,378. I have learned JS is notorious for this. Is there a way to work around this?