roundCoordinates() doesn't round all coordinates


#1
	l = Glyph.layers[f.masters[Master].id]
	c = copy.copy(l)
	c.removeOverlap()
	c.roundCoordinates()

This doesn’t seem to work in all cases. I’m getting coordinates like this after using roundCoordinates() with Grid Spacing and Subdivision set to 1.
d, 396, 156
d, 396, 700
d, 332, 0
d, 421, 0
d, 314, 372
d, 314, 83.003100000000003


#2

can you send me the file?


#3

sent it


#4

It will only set positions if there is a difference bigger then a 1/100 of a unit. So the 3/1000 are ignored. As the coordinates are only exported with a precision of 1/100 units, this should not matter.


#5

It matters because the function returns a float and not an integer.


#6

It will always return a float.