Given a non-empty array of integers nums, return the average of all elements as a floating-point number.
Example 1: Input: nums = [1,2,3] Output: 2.0
Example 2: Input: nums = [4,8,15,16] Output: 10.75
Constraints: 1 <= nums.length <= 100 -1000 <= nums[i] <= 1000