my code:
long totalVolume = sellVolume + buyVolume;
float sellPercent = (float)(sellVolume / totalVolume);
float buyPercent = (float)(buyVolume / totalVolume);
All the variable are long in the first line of code, and then I am trying to calculate the Percentage of it.... but java returns me zero only ... why is it so - Am i doing something wrong in typecasting