da Silva, Joe wrote:
Also, as a general question, is division more expensive than multiplication, or does the complier's optimization take care of such matters anyway?
I think for numbers whose inverse can be represented exactly (such as 2 and 0.5), it does. In a quick check I just made, it would, e.g., convert `a := b / 2' to `a := b * 0.5' and `a := b / 0.5' to `a := b + b' with optimization.
Frank