Ecliptic longitude in degrees (0-360, but accepts any value)
Complete zodiac position with sign, degree, and formatting
// Simple example
const pos = eclipticToZodiac(15.5);
// pos.sign = Sign.Aries
// pos.degree = 15, pos.minute = 30, pos.second = 0
// pos.formatted = "15°30'00\" Aries"
Convert ecliptic longitude to zodiac position
Takes a geocentric ecliptic longitude (0-360°) and determines which tropical zodiac sign it falls in, along with the precise degree, minute, and second within that sign.
Algorithm (based on Swiss Ephemeris):
floor(longitude / 30)longitude % 30