#djk3600
1 messages · Page 1 of 1 (latest)
Hi,
What is your question?
hey hey! glad to see you in the discord again
okay my question is this
I have got a rounding error, I think its more to do with my code, but it doesnt seem to be impacting my payments
Will this mess my payments or am I okay to crack on with marketing etc
Are you facing any API error due to this ?
Cool
I am just being extra cautios lol
Yeah I understand. No problem so it looks like that's a rounding issue in your integration, you need just to keep some digits (e.g. 2 in cent's currency)
Otherwise it's ok.
Have you found that .tofixed(2) works best?
I am just asking as you may have seen solutions to this problem before
What programming language are you using?
Try using round... something like Math.round(amount * 100) / 100
my man will give it a go