remove decimals i.e current: 7000.00 replace with 7000

PRADEEPREDDY GU
Tera Expert

Remove Decimals from all values across Demand platform

in Demand Form under financial tabs some fields are decimals, how we can remove that decimals

 if we can search for property which remove decimals i.e current: 3000.00 replace with 3000

 

 

can anyone provide solution,,

thanks in advance

3 REPLIES 3

RaghavSh
Kilo Patron

var a = parseInt(7000.00);

gs.print(a);

 

Try this in background script, it will work.


Please mark the answer correct/helpful accordingly.


Raghav
MVP 2023

@PRADEEPREDDY GU were you able to achieve this?


Raghav
MVP 2023

Omkar Kumbhar
Mega Sage
Mega Sage

Hello @PRADEEPREDDY GU ,

Use the below code

var number='7000.00';

var num= parseInt(number);
var abc= num.toFixed();

gs.log('print'+abc);

Thanks,

Omkar

 

Mark it as helpful if this solve your problem.

 

If I was able to help you with your case, please click the Thumb Icon and mark as Correct.