Click here to Skip to main content
15,888,802 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to store the value 5872025600 on a variable of type integer which data type can i use in c#
Posted

Use an Int64.
 
Share this answer
 
Comments
S Houghtelin 9-Jun-11 15:25pm    
+5 Good answer, and for your comment below, made me smile.
Sergey Alexandrovich Kryukov 10-Jun-11 13:16pm    
...or UInt64. I voted 0x0000000000000005 :-)
--SA
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 10-Jun-11 13:13pm    
A 5.
--SA
You have to use
Int64


The Int64 value type represents integers with values ranging from negative 9,223,372,036,854,775,808 through positive 9,223,372,036,854,775,807.

Hope this help :)

for further queries comment here!!
 
Share this answer
 
Comments
RakeshMeena 10-Jun-11 0:34am    
My 5!
its better to use

'varchar' type in db rather than int type in db


if u use 'varchar' no bother about value u want to store for further also
 
Share this answer
 
Comments
#realJSOP 9-Jun-11 13:54pm    
0) He's using C#, and said nothing about sql.
1) Don't use texting. It pisses off the literate members here.
2) 'varchar' is a string type, NOT an integer type.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900