Converting | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Converting

I thought it converts like 34,4-->34, What's the sence of converting? Can I write a programm without converting?

8th Nov 2018, 5:30 AM
Vyacheslav Sitkin
Vyacheslav Sitkin - avatar
4 Answers
+ 1
Whatsapp do you want toen do ? Concert string "34,4" to float 34,4 OR round 34,4 to 34 ? What type is de source 34,4 ?
8th Nov 2018, 10:50 PM
sneeze
sneeze - avatar
+ 1
I wanted to know why do we need to convert some number(34 for example) into integer if it's already int?
9th Nov 2018, 3:57 AM
Vyacheslav Sitkin
Vyacheslav Sitkin - avatar
0
Console. ReadLine returns a string. You can see 34 but the compiler sees the literals 3 4
9th Nov 2018, 5:29 AM
sneeze
sneeze - avatar
0
Ok, Thank you
9th Nov 2018, 6:37 AM
Vyacheslav Sitkin
Vyacheslav Sitkin - avatar