I'm trying to create a post API payload from Google Script & the number field needs to be passed without decimal values. However, the app script always adds a decimal 0 (Eg. 1000.0) in the end which creates issues
var amt = '1000';
Logger.log(amt);
var options = {
"method": "post",
"payload": {
"amount": parseInt(amt),
The logger replies with 1000, but when it is used in options, it passes 1000.0
Any help would be useful..