← Back to team overview

kicad-developers team mailing list archive

Re: specctra roundtripper

 

> Also, you may want to
> change Mils2iu to use wxRound() so it will work for negative values.

wxRound()'s use of C lib's round() seems like overkill to me.
Since the objective is to produce an integer, not a double, there is an easier way that
has the possibility of letting the compiler do some of the work, i.e. in advance, on
constants,
without the overhead of a mandatory floating point function call.

See my latest DMils2iu() as a suggestion.


Dick




Follow ups

References