Last post Jul 02, 2014 04:42 AM by MetalAsp.Net
Member
49 Points
31 Posts
Jul 02, 2014 04:35 AM|shamimbd0|LINK
Hi guys,
When I try to convert int32 of this "3894111278" string value, It show following error
"Value was either too large or too small for an Int16."
Pls me.
Participant
1644 Points
792 Posts
Jul 02, 2014 04:41 AM|rajesh93180|LINK
use this
Convert.ToInt64("3894111278")
For clear understanding, have a look over these..
All-Star
101931 Points
20703 Posts
Jul 02, 2014 04:42 AM|MetalAsp.Net|LINK
The maximum value for int32 is 2,147,483,647: http://msdn.microsoft.com/en-us/library/system.int32.aspx
So use int64/long instead.
Member
49 Points
31 Posts
Convert to int 32
Jul 02, 2014 04:35 AM|shamimbd0|LINK
Hi guys,
When I try to convert int32 of this "3894111278" string value, It show following error
"Value was either too large or too small for an Int16."
Pls me.
Participant
1644 Points
792 Posts
Re: Convert to int 32
Jul 02, 2014 04:41 AM|rajesh93180|LINK
use this
For clear understanding, have a look over these..
Mark as answer if you find this post helpful.
All-Star
101931 Points
20703 Posts
Re: Convert to int 32
Jul 02, 2014 04:42 AM|MetalAsp.Net|LINK
The maximum value for int32 is 2,147,483,647: http://msdn.microsoft.com/en-us/library/system.int32.aspx
So use int64/long instead.