Hi,
It depends on how much resolution you need and can fit within your variables.
If you multiply the dividend by 1000 before actually performing the division the equation (on paper) becomes 4947.5/9.9210=498.7 then you take 1000-498.7=501.3 which is now in units of 1/10 of a percent. In PBP you aren't going to use numbers like 9.9210 so in reallity you'd need to round that off to 10 and the *1000 will be truncated to 4947. 1000-(4947/10)=506 so it's a bit off.
Another way could be to use the ** operator, 4947**6606=498, 1000-498=502, or 50.2%, a bit better.
Yet another way would be to use DIV32, it all depends on the range of the numbers, your variable size, what resolution you need etc.
/Henrik.
Bookmarks