Round Perl coordinates instead of truncating them to integers. #1486 #1445 #1464