How can I remove decimal from Serial Number in the RITM

Francesco4
Tera Contributor

Hi all,

how can I remove decimal from serial number using Run Script on a Workflow?find_real_file.png

find_real_file.png

I already used Math.trunc(), Math.round(), parseInt(), stripDecimals() and nothing of these is working.

Could someone help me please?

Thanks in advance

 

6 REPLIES 6

ServiceNowSteve
Giga Guru

This solution does not work. I'm sorry

AbhishekGardade
Giga Sage

Hello Francesco,

Use: toFixed()

var num = 5.56789;
var n = num.toFixed();


Please mark as Correct Answer/Helpful, if applicable.
Thanks!
Abhishek Gardade

 

Thank you,
Abhishek Gardade

This solution does not work. I'm sorry