dcolley / integromat-facebook-support

0 stars 0 forks source link

Dear community, From a webservice get get a EUR ct amount of 18450 (pic 1)... #115

Open dcolley opened 3 years ago

dcolley commented 3 years ago

Source: copied from https://www.facebook.com/groups/integromat/permalink/3973519919425278/

Dear community,

From a webservice get get a EUR ct amount of 18450 (pic 1). I need to feed it to another webservice who expect a EUR amount. So I naively thought I could just divide 18450 / 100 (pic 2). That however results in a value of 184 and not 184.50 (pic 3) -- what is happening here?

Thanks and kind regards Sebastian

dcolley commented 3 years ago

Comment ID: 3973548516089085 Tey using format number or parse number it should help you

dcolley commented 3 years ago

Comment ID: 3973617792748824 Integromat can automatically convert it to integer. Are you sure you have to send the value not in euro cents? Mostly the amount is sent as cents to an api