remove decimals i.e current: 7000.00 replace with 7000
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2023 12:22 AM - edited 01-03-2023 01:38 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2023 12:24 AM - edited 01-03-2023 12:24 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2023 04:16 AM
@PRADEEPREDDY GU were you able to achieve this?
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2023 12:37 AM
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.