I know this is a simple problem, but I have a function that will not return a double or float value from a simple calculation...for example:
double r = (3 / 50);
return r;
For whatever reason, this function returns 0 instead of 0.06. Similar functions in my program return correct values...any ideas why all of a sudden this function will not return double or float values?