0 5 Years Ago double a,b; printf("%f",a^b); error occurs as shown in heading. any alternative method?

1 Featured Reply Narue 5,707 5 Years Ago 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. Comments vineeshvs: i usually get good replies from narue

0 Discussion Starter vineeshvs 5 Years Ago by a^b i mean 'a raised to b' (bth power of a). not bitwise operations.

1 Featured Reply WaltP 2,905 5 Years Ago 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()

0 Discussion Starter vineeshvs 5 Years Ago thanks... i was converting matlab to c. so didnt notice...