error occurs as shown in heading.
any alternative method?
Before looking for ways to do this, maybe you should consider why you want to do it in the first place. Bitwise operations not working on floating-point isn't much of an issue because most of the time it's nonsensical.
by a^b i mean 'a raised to b' (bth power of a). not bitwise operations.
Where you got the idea ^ means raised to the power in C is a great question.
Belaying that, look in the math.h header for the function pow()
thanks... i was converting matlab to c. so didnt notice...