For calculating the data required for Google Maps, it would be handy to have these methods in the Ratio class.
def __int__(self):
return int(self.__float__())
def __float__(self):
return float(self.num)/float(self.den)
I am aware, that these methods causing rounding errors,
but some kind of "transformation" is still handy in this class.
2008-09-18 20:41:19 UTC in EXIF.py