i'm traying to put in velocity context one method:
ctx.put("round", roundServiceTime(serviceTimeRound));
public int roundServiceTime (int serviceTimeRound) {
double sum = serviceTimeRound/60;
this.serviceTimeRound = (int)Math.ceil((double)sum);
return serviceTimeRound;
}
error line: #set( $val = $round(90))
and getting error :
Encountered "(" at line 175, column 20.
Was expecting one of: ... ... "-" ... "+" ... "*" ... "/" ... "%" ... "&&" ... "||" ... "<" ... "<=" ... ">" ... ">=" ... "==" ... "!=" ... ...
where is the problem ?