Hopefully a quick and easy maths problem...

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

Thanks.... but.... In my original code i'm actually dividing two elements from an array, e.g:

blah = (myarray[0] - myarray[x])/myarray[0]

(i need to find the difference between the current (x) value of the array and the first (0) value as a percentage of the first value)

So is this still so easily solved? and how do I indicate code in the text (since [CODE][/CODE] obviously isn't right ;)