double s = 1/(noOfPhases + 1);
When I print the s the value I get is zero however when i print noOfPhases the value is 3. If i do the following
double s = (noOfPhases + 1);
the value returned is 4. Why can I not not do 1 divided by...?
Hope someone can help?
Thank you