Robert (Jamie) Munro wrote: > Use 2^N/360 as your fixed constant, where N is the number of bits > you use in your integer. Note that 2^N/360 is not going to be an integer for any integer N so you're still going to have to care about wrapping. On modern CPUs, floating point is also usually faster than fixed point. Why not use it? Cameron