A Manipulate example:
Manipulate
Manipulate[ p = Round[p]; Graphics[PlotRange -> 10, Axes -> True, PlotLabel -> p], {p, ContinuousAction -> False, Locator} ]
Thank you so much.
A special feature of Round is that the second argument can also be a list. This makes it easy to round a 2D-point with different granularity along the first and second dimensions. For example, Round[{3.1, 6.5}, {2, 1}] gives {4,6}.
Round
Round[{3.1, 6.5}, {2, 1}]
{4,6}
I didn't know that. Excellent. Thanks!
Gregory
I think you have to use the method relying on re-setting the position (using Round), as in the example under Applications in the documentation page of Locator.
Much obliged, Szabolcs.