Start New Discussion within our Software Development Community
double a,b;

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.

i usually get good replies from narue

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()

This question has already been answered. Start a new discussion instead.