Modulus is supposed to return the remainder.  I have tested this
against New Atlanta's BD, OpenBD, and Java.

10.5 mod 4 = 2.5 in New Atlanta's BD
10.5 % 4 = 2.5 in Java

10.5 mod 4 = 2 in OpenBD

Peter, I see nothing in the wikipedia article that restricts modulus
calculations to whole numbers.  Whole numbers just illustrate examples
easier.

Randy, I wish I was using simple numbers like this in my actual
application.  The application I'm writing is intended to draw circles
on google earth.  There's no circle polygon in KML, so the points
around the circumference have to be calculated using a center latitude/
longitude and a given radius.

I'm going to have to write my own math function to handle to make
modulus work correctly in openBD.

-- 
official tag/function reference: http://openbd.org/manual/
 mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to