[Kstars-devel] KDE/kdeedu/kstars/kstars/tools

Akarsh Simha akarshsimha at gmail.com
Mon Jun 16 20:06:57 CEST 2008


SVN commit 821179 by asimha:

Replacing abs() by fabs() in KSConjunct. I didn't know that abs()
worked only on integers.

Thanks to James for pointing this out. The conjunction tool now
reports a lot more conjunctions that it missed earlier.

CCMAIL: kstars-devel at kde.org



 M  +1 -1      ksconjunct.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/tools/ksconjunct.cpp #821178:821179
@@ -121,7 +121,7 @@
     jd += step;
     Dist = findDistance(jd, Object1, Object2);
 
-    if(abs(step) < 1.0 / 24.0) {
+    if(fabs(step) < 1.0 / 24.0) {
       out -> first = jd - step / 2.0;
       out -> second = findDistance(jd - step/2.0, Object1, Object2);
       if(out -> second.radians() < findDistance(jd - 5.0, Object1, Object2).radians())


More information about the Kstars-devel mailing list