Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

39,938 questions

51,875 answers

573 users

How to use Int64 and UInt64 in VB.NET

1 Answer

0 votes
' Int64 = signed eight bytes integer within the range of: -9223372036854775808 to 9223372036854775807
 
' UInt64 = unsigned eight bytes integer within the range of: 0 to 18446744073709551615

Imports System

Public Class Program
	Public Shared Sub Main()
        Dim i64_1 As Int64 = 2983
        Dim i64_2 As Int64 = -39183
        
		Dim ui64_1 As UInt64 = 9837213
		
        Console.WriteLine("{0} is {1}", i64_1, i64_1.GetTypeCode())
        Console.WriteLine("{0} is {1}", i64_2, i64_2.GetTypeCode())
		
        Console.WriteLine("{0} is {1}", ui64_1, ui64_1.GetTypeCode())
    End Sub
End Class







' run
'
' 2983 is Int64
' -39183 is Int64
' 9837213 is UInt64
'

 



answered Aug 5, 2022 by avibootz

Related questions

1 answer 138 views
1 answer 132 views
132 views asked Aug 5, 2022 by avibootz
1 answer 142 views
1 answer 112 views
...