near: fix for negative inputs (SF#3092250)
near: fix for negative inputs (SF#3092250)

The formula used for 'within a factor of' was only correct for
positive numbers.

ianmcmahon/linuxcnc-mirror,Cid427/machinekit,bmwiedemann/linuxcnc-mirror,bobvanderlinden/machinekit,kinsamanka/machinekit,strahlex/machinekit,EqAfrica/machinekit,aschiffler/linuxcnc,ArcEye/machinekit-testing,aschiffler/linuxcnc,cdsteinkuehler/linuxcnc,strahlex/machinekit,EqAfrica/machinekit,bobvanderlinden/machinekit,araisrobo/machinekit,aschiffler/linuxcnc,cdsteinkuehler/MachineKit,mhaberler/machinekit,bmwiedemann/linuxcnc-mirror,mhaberler/machinekit,mhaberler/machinekit,jaguarcat79/ILC-with-LinuxCNC,RunningLight/machinekit,mhaberler/machinekit,ianmcmahon/linuxcnc-mirror,ArcEye/machinekit-testing,unseenlaser/linuxcnc,EqAfrica/machinekit,ArcEye/machinekit-testing,araisrobo/machinekit,araisrobo/machinekit,bmwiedemann/linuxcnc-mirror,cdsteinkuehler/MachineKit,narogon/linuxcnc,ikcalB/linuxcnc-mirror,bmwiedemann/linuxcnc-mirror,cdsteinkuehler/linuxcnc,araisrobo/linuxcnc,bobvanderlinden/machinekit,cnc-club/linuxcnc,mhaberler/machinekit,cdsteinkuehler/linuxcnc,ArcEye/MK-Qt5,cdsteinkuehler/MachineKit,bmwiedemann/linuxcnc-mirror,ikcalB/linuxcnc-mirror,Cid427/machinekit,strahlex/machinekit,Cid427/machinekit,ikcalB/linuxcnc-mirror,araisrobo/linuxcnc,cnc-club/linuxcnc,unseenlaser/machinekit,ianmcmahon/linuxcnc-mirror,ArcEye/MK-Qt5,jaguarcat79/ILC-with-LinuxCNC,strahlex/machinekit,mhaberler/machinekit,araisrobo/linuxcnc,bobvanderlinden/machinekit,araisrobo/linuxcnc,ikcalB/linuxcnc-mirror,ArcEye/MK-Qt5,ianmcmahon/linuxcnc-mirror,ArcEye/machinekit-testing,jaguarcat79/ILC-with-LinuxCNC,kinsamanka/machinekit,cnc-club/linuxcnc,ianmcmahon/linuxcnc-mirror,EqAfrica/machinekit,Cid427/machinekit,RunningLight/machinekit,RunningLight/machinekit,ArcEye/MK-Qt5,RunningLight/machinekit,unseenlaser/machinekit,ArcEye/machinekit-testing,narogon/linuxcnc,ArcEye/machinekit-testing,aschiffler/linuxcnc,araisrobo/machinekit,ArcEye/machinekit-testing,aschiffler/linuxcnc,bobvanderlinden/machinekit,cnc-club/linuxcnc,bobvanderlinden/machinekit,bobvanderlinden/machinekit,bobvanderlinden/machinekit,araisrobo/machinekit,narogon/linuxcnc,unseenlaser/linuxcnc,kinsamanka/machinekit,ikcalB/linuxcnc-mirror,ArcEye/machinekit-testing,kinsamanka/machinekit,EqAfrica/machinekit,cdsteinkuehler/linuxcnc,unseenlaser/linuxcnc,ianmcmahon/linuxcnc-mirror,jaguarcat79/ILC-with-LinuxCNC,araisrobo/machinekit,strahlex/machinekit,cdsteinkuehler/MachineKit,ArcEye/MK-Qt5,unseenlaser/linuxcnc,kinsamanka/machinekit,RunningLight/machinekit,ikcalB/linuxcnc-mirror,cnc-club/linuxcnc,RunningLight/machinekit,araisrobo/machinekit,cdsteinkuehler/linuxcnc,EqAfrica/machinekit,EqAfrica/machinekit,unseenlaser/machinekit,ArcEye/MK-Qt5,strahlex/machinekit,cdsteinkuehler/MachineKit,ArcEye/MK-Qt5,RunningLight/machinekit,mhaberler/machinekit,araisrobo/machinekit,EqAfrica/machinekit,bmwiedemann/linuxcnc-mirror,kinsamanka/machinekit,kinsamanka/machinekit,ikcalB/linuxcnc-mirror,cnc-club/linuxcnc,Cid427/machinekit,ArcEye/MK-Qt5,ianmcmahon/linuxcnc-mirror,kinsamanka/machinekit,mhaberler/machinekit,jaguarcat79/ILC-with-LinuxCNC,Cid427/machinekit,unseenlaser/machinekit,unseenlaser/machinekit,unseenlaser/machinekit,Cid427/machinekit,bmwiedemann/linuxcnc-mirror,narogon/linuxcnc,unseenlaser/machinekit,cdsteinkuehler/linuxcnc,Cid427/machinekit,araisrobo/linuxcnc,unseenlaser/linuxcnc,strahlex/machinekit,cdsteinkuehler/MachineKit,narogon/linuxcnc,RunningLight/machinekit,unseenlaser/machinekit,araisrobo/machinekit,cnc-club/linuxcnc