Yes, I am already using try catch, but I still wanted to ask about this. I thought there was a specific action for this in BAS, such as OnApplicationExit, just like ‘OnApplicationStart’.
Sorry bud, I didn't see this come across my feed!
You can also use Math.trunc(decs). Just change the type from String to expression when setting the variable.