When I have a fraction for example (5 / 6)
then Java will just round this to 0.
For example:
System.out.println(1-(1/2));
This prints out 1 instead of 1/2 ie 0.5.
How can I tell Java that these should be floats or doubles instead of rounded to integers?