I want to add transient attribute to my view object and make some calculation using Groovy
but I can't use trunc function
if ((EmpSal) - ((DefSal)*0.1) < 0){return 0} else {return ((EmpSal) - ((DefSal)*0.1))}
the problem that this calculation that i need to make is that
I want to make trunc for DefSal
like this
trunc((DefSal)*0.1)
but this generates error
can any one help me in this