0

Its late night and Im little embarrased to ask:

Why bitwise negation on double type throws error?

I understand how double-precision floating point is stored in memory, but I sure am missing something...

double left = 1;
double nLeft = ~(left);

error: invalid argument type 'double' to unary expression
  double nLeft = ~(left);
                 ^~~~~~~
JamesWebbTelescopeAlien
  • 3,547
  • 2
  • 30
  • 51

0 Answers0