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: [238.308, -2.286, -50.644, 228.955, 36.097, 122.092, -21.684, -17.873, -43.27]
Output:
[ 0.487 -0.005 -0.103 0.468 0.074 0.249 -0.044 -0.036 -0.088]