+ 2

What is difference between convert.ToInt16 or convert.ToInt32 or convert.ToInt64

write difference

8th Jan 2019, 2:44 PM
Alam Shaikh
2 ответов
+ 2
You get different types of number. Shot, int, long
8th Jan 2019, 2:46 PM
Earl_Grey
Earl_Grey - avatar
+ 2
As Earl_Grey already told you you will get different datatype from each method, Int16 is the datatype short, Int32 is the classic datatype int, and Int64 is the datatype long. 16, 32, 64 indicates the size in bits of each datatype. short is 16 bits and it goes from -32,768 to 32,767 int is 32 bits and it goes from -2,147,483,648 to 2,147,483,647 long is 64 bits and it goes from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
8th Jan 2019, 2:54 PM
Sekiro
Sekiro - avatar