Re: gEDA-user: Rounding vs. truncating in gcode exporter

2011-05-17 Thread Markus Hitter
Am 17.05.2011 um 23:36 schrieb Andrew Poelstra: does it matter whether we use truncation or rounding in this calculation? If so, which should be used? I can't think of a situation where truncating is more accurate than rounding, so rounding is always better, IMHO. If you work on the gcode

gEDA-user: Rounding vs. truncating in gcode exporter

2011-05-17 Thread Andrew Poelstra
As part of my project to convert PCB's internal units to nanometers from cmils, I am cleaning up and unifying the unit handling code in the core and various HID's. In the gcode HID there is an auxiliary function to convert pcb's units to an integer number of ``dots'' (what the printer uses when y