0

How can i use decimals in c# in user input

Please help

18th Dec 2021, 4:26 PM
Me Ow
Me Ow - avatar
4 ответов
0
New to C# here. Decimal : 128 bits, Contains 28-29 digits Try this one: decimal k = decimal.Parse(Console.ReadLine()); Console.WriteLine(k); //To check enter long numbers It works on Visual Studio. Not sure it will work on sololearn compiler.
18th Dec 2021, 7:08 PM
kev_coding
kev_coding - avatar
+ 2
float x = float.Parse(Console.ReadLine());
18th Dec 2021, 4:34 PM
Anya
Anya - avatar
+ 1
Thanks alot guys
19th Dec 2021, 9:25 AM
Me Ow
Me Ow - avatar
+ 1
Follox me in my Instagram (mariobrrg3?
20th Dec 2021, 9:09 AM
Mario Barrasa Granado