find nearest int on decimal pixels