def ABMagnitudeToJansky(ABmagnitude):
    """
    Converts AB magnitudes to Janskys.

    :note: Can be used with SQLite3 database.

    :param ABmagnitude: AB-magnitude of the object
    :type ABmagnitude: float or ndarray

    :return: either a float or NumPy array
    """
    return 10 ** ((23.9 - ABmagnitude) / 2.5) / 1e6