I can't seem to figure this one out but I'm sure it's easy. My program seems to be truncating decimal values even though stored in a double
Both sets of code below output the number 0 when I need them to output .5, what am I doing wrong?
cout << (1/2);
double value;
value = (1/2);
cout << value;