I want to know is there any procedure to find whether given points are on grid or offgrid.If i give apoint like 0.625 and grid is 0.01
then the procedure should return "nil" .If i give point like 0.62 it should return "t".
procedure(gridp( point ) let((theGrid ) theGrid = 0.01 point/theGrid == round(point/theGrid) ))
Thank you very much .
I also written some other function like this.It is also working fine.
procedure(ongridp( value ) let(() value_2 = round(value/0.01)*0.01 value_3 = (value/0.01)*0.01 value_4 = abs(value_2 - value_3) zerop(value_4)))