So I'm trying my hand at C++ again and I'm writing a function that keeps giving the wrong value.
I've boiled it down to a line basically this: double testD = (10/100); that gives me 0 instead of 0.1.
I might have missed something major but I thought double held decimal values? For the life of me I can't get this to be correct.
Please help me (even if I'm terribly stupid).