0

Decimal problem

You know when you execute an c# program it ask you for some values but, how can I write decimal ones? I think the problem is in the Convert.To.Int.32 but I don't know. Just imagine that the code is: double xi = Convert.ToInt32(Console.Readline());

25th May 2019, 4:42 PM
blackndBlue
blackndBlue - avatar
3 Respostas
+ 4
Try double xi = Double.Parse(Console.ReadLine());
25th May 2019, 5:02 PM
Ipang
+ 2
You're welcome mate, happy coding 👍
25th May 2019, 5:11 PM
Ipang
+ 1
Thank you! :)
25th May 2019, 5:09 PM
blackndBlue
blackndBlue - avatar