0

in this program i'm writing, i seem to keep getting rounded down values. At first i though it was because i was declaring my return variable as an integer so i made sure i wasnt doing that and changed all number variables in the class to doubles to ensure i wasnt going wrong there and still i divide 3 into 4 and get 0.

```
double fraction::percent()
{
double _percent=_top/_bottom*100+(_whole*100);
cout<<_bottom<<endl<<endl<<"percent "<<3/4/**100+(_whole*100)*/<<endl;
return(_percent);
}
```

the calculation was 3/4*100+_whole*100, i commented out all but the first part to see what 3/4 returns and i get 0 instead of .75.