Hopefully a quick and easy maths problem...

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

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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.