Also see the Blitz Max help/language/types/type balancing for an explanation on what is happening in that equation. In the previous equation you could have got away with only casting one arguement.
blah = (Double(myarray[0]) - myarray[x])/myarray[0]But it's safer just to cast them all.