[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 data type of the column you want to store it in, or store your data in a different way (e.g. store the two integers in separate columns).

1

solved converting String to Int in C# [closed]