Hopefully a quick and easy maths problem...

BlitzMax Forums/BlitzMax Beginners Area/Hopefully a quick and easy maths problem...

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.