import math


def _find_closest_prefix_power(number: float) -> int:
    """Return the closest power associated with an SI prefix.

    Args:
        number (float): A number to find the prefix power for.

    Returns:
        int: The closest SI prefix power.
    """
    return (
        max(min(math.floor(math.log10(abs(number))) // 3 * 3, 24), -24)
        if number != 0
        else 0
    )