i'm working on a linear regression macro. and it mostly works, but it only works when the input data type for the x-axis is an integer
if i change the data type to double (without changing any of the values) suddenly the "slope" output is zero.. but i am having a hard time figuring out why..

