Name: Anonymous 2008-09-27 21:40
which is faster, /prog/?
VS.
OR
is there an easier way to unset a double-precision value's sign bit?
const int SIZE_OF_DOUBLE = sizeof(double) * 8;
double absoluteValue = (double)(bitset<SIZE_OF_DOUBLE>((unsigned long)value).set(SIZE_OF_DOUBLE - 1, 0).to_ulong());VS.
double absoluteValue = abs(value);OR
is there an easier way to unset a double-precision value's sign bit?