ooops - sorry
The above is wrong - int will generally (?) truncate.
Perhaps it would be best to use the "round" function loaded with PGstandard
Years ago Fortran IV (with WATFIV) we rounded with int(x+0.5)
Then a new version was installed and the rounding was done automatically.
I thought this to be a very progressive at the time; I guess perl has regressed.