division a float to return a float java code example
Example: java integer division to float
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