convert string to flo code example Example: convert string to float java String yourString = "23.7"; float yourFloat = Float.parseFloat(yourString);