Forum Discussion
JimLin
13 years agoOccasional Contributor
I use this in a Groovy step. You can adjust the number of digits by increasing or decreasing the -3:
// Remove trailing zeros
def firstDepositMinusZero = firstDeposit[0..-3] as int