Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Need help to build a script to divide two integer fields

giovanni3
Kilo Contributor

How do you divide two integer fields to get a value in a separate field?   For example, field1=10, field2=5.   I want to divide field1 from field2 and have the value in field3.

11 REPLIES 11

Thank you!!!   Although it doesn't remove the commas, it does calculate as expected.   You guys are awesome and very responsive!!!


If you don't want a comma in your integer fields, add the attribute "format=none" to the dictionary entry for that field.