determine highest value

BlitzPlus Forums/BlitzPlus Programming/determine highest value

How can I determine the highest value from 6 different INT's ? and it would also be nice to determine the difference between each value, eg, get the highest value from the 6 and get the difference between it and the other 5.

I can see how to do it with tons of IF's but I didnt think that was a nice way to do it.
Any help is very much appreciated.