Fix wrong guideline values shown during dragging
Fix wrong guideline values shown during dragging

Suppose that the user wants to use some guidelines in 2D mode. The
user has enabled "Use Pixel Snap", and configured the "Grid Step" to
1px.

On some zoom levels, when dragging the guidelines step by step, some
offsets shows the wrong value. The offsets that are wrong vary - it is
affected by the zoom level, so some zoom levels do not display this
problem.

For example, a user may see this while dragging the guideline:

0px   1px   1px   3px   4px   5px   5px   7px   8px

whereby 2px and 6px are missing.

This is due to a floating-point error. The values are printed as
(truncated) integers, but they are actually decimals, so they were
actually 1.9999 and 5.9999 for the missing cases.

Let's fix that by rounding up the values before printing them to get rid
of the errors.

This fixes #35010.

Faless/godot,Shockblast/godot,sanikoyes/godot,DmitriySalnikov/godot,Faless/godot,DmitriySalnikov/godot,akien-mga/godot,ZuBsPaCe/godot,Faless/godot,Valentactive/godot,godotengine/godot,vnen/godot,Zylann/godot,vkbsb/godot,Faless/godot,guilhermefelipecgs/godot,sanikoyes/godot,Zylann/godot,sanikoyes/godot,Paulloz/godot,sanikoyes/godot,MarianoGnu/godot,Paulloz/godot,pkowal1982/godot,DmitriySalnikov/godot,DmitriySalnikov/godot,ex/godot,vnen/godot,honix/godot,Faless/godot,ex/godot,guilhermefelipecgs/godot,Paulloz/godot,guilhermefelipecgs/godot,ex/godot,ex/godot,Shockblast/godot,vnen/godot,godotengine/godot,honix/godot,vkbsb/godot,akien-mga/godot,pkowal1982/godot,firefly2442/godot,ZuBsPaCe/godot,Valentactive/godot,pkowal1982/godot,vkbsb/godot,josempans/godot,firefly2442/godot,godotengine/godot,pkowal1982/godot,ex/godot,pkowal1982/godot,BastiaanOlij/godot,ZuBsPaCe/godot,pkowal1982/godot,akien-mga/godot,akien-mga/godot,ex/godot,Zylann/godot,guilhermefelipecgs/godot,vnen/godot,Shockblast/godot,sanikoyes/godot,Shockblast/godot,Zylann/godot,ZuBsPaCe/godot,DmitriySalnikov/godot,vkbsb/godot,ZuBsPaCe/godot,Paulloz/godot,josempans/godot,pkowal1982/godot,godotengine/godot,BastiaanOlij/godot,Faless/godot,MarianoGnu/godot,BastiaanOlij/godot,Valentactive/godot,firefly2442/godot,akien-mga/godot,firefly2442/godot,Paulloz/godot,josempans/godot,ex/godot,guilhermefelipecgs/godot,Shockblast/godot,ZuBsPaCe/godot,Shockblast/godot,Zylann/godot,vnen/godot,vnen/godot,Valentactive/godot,MarianoGnu/godot,josempans/godot,guilhermefelipecgs/godot,josempans/godot,sanikoyes/godot,josempans/godot,ZuBsPaCe/godot,vkbsb/godot,Shockblast/godot,vkbsb/godot,honix/godot,vkbsb/godot,vnen/godot,BastiaanOlij/godot,MarianoGnu/godot,guilhermefelipecgs/godot,sanikoyes/godot,ex/godot,Valentactive/godot,honix/godot,vkbsb/godot,Valentactive/godot,MarianoGnu/godot,akien-mga/godot,DmitriySalnikov/godot,firefly2442/godot,Zylann/godot,Faless/godot,godotengine/godot,MarianoGnu/godot,godotengine/godot,ZuBsPaCe/godot,Faless/godot,MarianoGnu/godot,vnen/godot,DmitriySalnikov/godot,BastiaanOlij/godot,Shockblast/godot,Paulloz/godot,BastiaanOlij/godot,Zylann/godot,BastiaanOlij/godot,pkowal1982/godot,Valentactive/godot,firefly2442/godot,Paulloz/godot,akien-mga/godot,godotengine/godot,honix/godot,MarianoGnu/godot,josempans/godot,BastiaanOlij/godot,Valentactive/godot,honix/godot,akien-mga/godot,josempans/godot,firefly2442/godot,sanikoyes/godot,guilhermefelipecgs/godot,firefly2442/godot,Zylann/godot,godotengine/godot