Next / Previous / Contents / TCC Help System / NM Tech homepage

13.2. JulianDate.__float__(): Convert to a float

This method adds JULIAN_BIAS to the internal value so that it is the standard value.

sidereal.py
# - - -   J u l i a n D a t e . _ _ f l o a t _ _

    def __float__ ( self ):
        """Convert self to a float.
        """
        return  self.j + JULIAN_BIAS