how to get division of a number with floating point in java code example
Example: java integer division tofloat
instead of writing
v = s/i (this does integer division)
write v = (float)s/i
instead of writing
v = s/i (this does integer division)
write v = (float)s/i