Get the standard deviation of array

MarkT:
You need to use floating point once you start to use division - integer division is not mathematically correct.

floating point division won't be "mathematically correct" either.... but a bit more precise!