Turned some ints to floats included ctype.h

ints were preventing voltageFromSeries from running. Also the function
is now declared above the main function. The inclusion of ctype.h
should allow for the use of the toupper().