How to string to uint in C#

1 Answer

0 votes
using System;
 
class Program
{
    static void Main() {
        string str = "98472";
        
        uint u_int = Convert.ToUInt32(str, 10);
 
        Console.WriteLine(u_int);
    }
}

 
 
 
/*
run:
 
98472
 
*/

 



answered Aug 14, 2023 by avibootz

Related questions

1 answer 131 views
131 views asked Nov 16, 2021 by avibootz
1 answer 174 views
174 views asked Feb 5, 2021 by avibootz
1 answer 177 views
1 answer 92 views
92 views asked Aug 14, 2023 by avibootz
...