I want to convert instead of US dollar indian rupee in react. Ex, 4,13,41,414.00
currently I am getting output like this: 41,341,414.00
I am Expecting like this 4,13,41,414.00
Hi
You can use javascript expression for basic dollar or currency amount
toString().replace(/(\d)(?=(\d{3})+$)/g, "$1,")With RegardsPratap Singh
Hi Githiyon,
You can try with Custom input Mask number from forge components.
https://www.outsystems.com/forge/component-overview/647/custom-input-masks
https://www.outsystems.com/forge/component-overview/7729/input-mask
https://www.outsystems.com/forge/component-overview/7819/input-mask-reactive
Thanks
Murugan S S
Hi,
You can refer javascript from the below discussion,
https://www.outsystems.com/forums/discussion/40055/currency-convert/
Thanks,
Ajit Kurane.
HI Githiyon,
Try this,
var value=your value-> $parameters.amount (your value)
value=value.toString();
var xyz=value.substring(value.length-3);
var middlevalue= value.substring(0,value.length-3);
if(middlevalue != '')
xyz= ',' + middlevalue ;
var finalvalue = middlevalue .replace(/\B(?=(\d{2})+(?!\d))/g, ",") + middlevalue ;