IBM Support

Sample JavaScript to add two string values and return non-exponential format of string value used as a custom script in Map variable activity

Troubleshooting


Problem

Sample JavaScript to add two string values and return non-exponential format of the string value.

Cause

The output of sum function returns data in exponential form

Resolving The Problem

The sample JavaScript provided below will add two string values and return the non-exponential format of the string value:

function nonexponential(input1, input2)
{
input1 = eval(input1);
input2 = eval(input2);
var output = input1+input2;
return output.toFixed(0);
}

You can use this java script to get the non-exponential format of the string value by using the custom function which is available in Studio,

[{"Product":{"code":"SSGR73","label":"IBM Cast Iron Cloud Integration"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Not Applicable","Platform":[{"code":"PF033","label":"Windows"}],"Version":"5.0.1.8;6.0.0.5;6.1.0.9","Edition":"Virtual;Physical;Cloud","Line of Business":{"code":"LOB45","label":"Automation"}}]

Historical Number

00001270

Product Synonym

Cast Iron Solution
Cast Iron Operating System
Cast Iron Studio

Document Information

More support for:
IBM Cast Iron Cloud Integration

Software version:
5.0.1.8, 6.0.0.5, 6.1.0.9

Operating system(s):
Windows

Document number:
410767

Modified date:
15 June 2018

UID

swg21453404

Manage My Notification Subscriptions