make more correct median mean closere

git-svn-id: https://svn/IT/az/groovy@23885 99cadc30-3bf9-11df-9bc1-510916f65ae8
use more concise casting to int

git-svn-id: https://svn/IT/az/groovy@23886 99cadc30-3bf9-11df-9bc1-510916f65ae8
Merge remote-tracking branch 'remotes/git-svn'