sorry it didnt show the whole thing, here's the rest:
In my computer class we have an assignment where we have to make our own conversion functionns. There's one for converting to integers, one for fractions, and one called string_to_float. Our prof gives us tips, and he said we need to "traverse the string to find a decimal point." I'm not really sure what traverse means, but I think it means just find weather there's a decimal.
I used the find function, but I'm not sure how to use it. For, example, let st = the string the user inputs.
find(st,".")
Can I even say it like that?
Should I assign this as a variable and then use it in an if statement? In the other conversion funtions I used a for loop, so should I try to use that here as well?
Or am I doing this completely wrong? Anyways, thank you in advance for any advice you can give me