How can I correct this function compile error?

The question is not whether or not i should use a function, the question is how to take the value of the function and make it into a displayable set of digits.

As well as how to fix these new compile messages.