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,143
  • 2
  • 25
  • 48

0 Answers0