Re: Latitude to decimal degrees.



On 26 Nov 2005 09:32:33 -0800, bherbst65@xxxxxxxxxxx wrote, quoted or
indirectly quoted someone who said :

> if (locdir1.equals("S") )
> flocdegree = -1* flocdegree;
i would write that as
flocDegree = -flocDegree;

There is no need to multiply when all you need is a sign inversion.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.



Relevant Pages

  • Re: how do I make Class.forName("Integer") returning java.lang.Integer ?
    ... Canadian Mind Products, Roedy Green. ... http://mindprod.com Java custom programming, consulting and coaching. ... Prev by Date: ...
    (comp.lang.java.programmer)
  • Re: While statement
    ... Please repost your ... Canadian Mind Products, Roedy Green. ... http://mindprod.com Java custom programming, consulting and coaching. ... Prev by Date: ...
    (comp.lang.java.programmer)
  • Re: Motorbike hashtable
    ... Whoops. ... Canadian Mind Products, Roedy Green. ... http://mindprod.com Java custom programming, consulting and coaching. ... Prev by Date: ...
    (comp.lang.java.programmer)
  • Re: Implementing Complex Numbers operation in bytecode
    ... >precision of course). ... Canadian Mind Products, Roedy Green. ... http://mindprod.com Java custom programming, consulting and coaching. ... Prev by Date: ...
    (comp.lang.java.programmer)
  • Re: Automating testing of JApplets
    ... >Or is there some other way of testing applets that I haven't considered? ... Canadian Mind Products, Roedy Green. ... http://mindprod.com Java custom programming, consulting and coaching. ... Prev by Date: ...
    (comp.lang.java.programmer)