int main(void ) {
int ix = -4,
iy;
long lx = -41567L,
ly;
double dx = -3.141593,
dy;
__int64 wx = -1, wy;
// absolute 64 bit integer value
wy = _abs64( wx );
printf_s(
"The absolute value of %I64x is %I64x\n", wx, wy);
// absolute 32 bit integer value
iy = abs( ix );
printf_s(
"The absolute value of %d is %d\n", ix, iy);
// absolute long integer value
ly = labs( lx );
printf_s(
"The absolute value of %ld is %ld\n", lx, ly);
// absolute double value
dy = fabs( dx );
printf_s(
"The absolute value of %f is %f\n", dx, dy );
}