def acc_to_float(number: int) -> float:
    """Converts acceleration values from tilting Lego Mario to a sensible float -1 < x < 1 to then input into control stick.

    Args:
        number (int): Lego Mario's accelerometer's output in one direction. -255 < x <255

    Returns:
        float: float to input into VX360Gamepad.left_joystick_float.
    """
    return min(max(number/18, -1), 1)