cancel
Showing results for 
Search instead for 
Did you mean: 

How to change format of price like 12,222.00 to 12222.00

Former Member
0 Kudos

Hi ,

I have a requirement where i need to change the price format as 12,222.00 to 12222.00,ie i have to remove the ","

Regards,

Nowsheen.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Use Replacestring Function which is available in Standard Functions(Text)

Mapp the source field to first input to Replacestring

Mapp the constant , to the second input of the Replacestring

Mapp the Constant (Dont give any thing, just empty) to the third input of the Replacestring

MApp the Replacestring to Target field

Regards

Seshagiri

Former Member
0 Kudos

Hi Sheshagiri,

Thanks alot , it solved my problem.

Thanks&Regards,

Nousheen.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Nowsheen,

You can change numeric field format by using "FormatNum" function on graphical mapping editor.

Best regards,

Orkun Gedik

Former Member
0 Kudos

Hi

use UDF:

price = price.replaceAll(",","");
return price;

Regards Mario

prateek
Active Contributor
0 Kudos

2 options

1. Use FormatNum

2. U can use replaceString function and replace , with ""

Regards,

Prateek