[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-user: Rounding vs. truncating in gcode exporter

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 you set the DPI). This
integer conversion is done by truncation right now,
which caused some inconsistencies when rearranging

So, my question to all the gcode users is: does it
matter whether we use truncation or rounding in this
calculation? If so, which should be used?

Andrew Poelstra
Email: asp11 at sfu.ca OR apoelstra at wpsoftware.net
Web:   http://www.wpsoftware.net/andrew/

geda-user mailing list