corrected the check if a value if at the boundary; previously it missed it
corrected the check if a value if at the boundary; previously it missed it

ridoo/IlwisCore,ridoo/IlwisCore,ridoo/IlwisCore,ridoo/IlwisCore,ridoo/IlwisCore