Definition: In this task, you will be given a list of numbers. The goal is to divide all the numbers in the list by a constant such that the sum of the resulting list is 1. The output should be rounded to 3 decimals.
Input: [-8.184, 192.032, -59.247, 176.706, -81.208, 11.846, -25.294, 22.555, -5.471, -9.991]
Output:
[-0.038  0.898 -0.277  0.827 -0.38   0.055 -0.118  0.106 -0.026 -0.047]