0

How can i enter a floating number Input in C#?

For int or double its convert.ToInt/ToDouble(console. Readline()) but what about float ?

25th Jan 2017, 5:13 PM
El Mokni MedAmin
El Mokni MedAmin - avatar
3 Réponses
+ 9
You can use float.Parse(Console.ReadLine()) It acts the sam way
27th Jan 2017, 4:52 AM
WittyBit
WittyBit - avatar
+ 1
ToDouble
26th Jan 2017, 5:52 PM
Asad Azhar
Asad Azhar - avatar
0
Thanks Michael
27th Jan 2017, 11:27 AM
El Mokni MedAmin
El Mokni MedAmin - avatar