[Solved] converting String to Int in C# [closed]
An integer is a single number with no decimal part, e.g., 3, 28, -76, 154, etc. You have a string, “0/5”. “0/5” doesn’t represent a number (especially as you’ve said it’s not a fraction), so it can’t be converted to an integer because it’s not the same kind of data. You’ll need to change the … Read more