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

Prodentim Probiotics Specially Designed For The Health Of Your Teeth And Gums

Instant Grammar Checker - Correct all grammar errors and enhance your writing

Teach Your Child To Read

Powerful WordPress hosting for WordPress professionals

Disclosure: My content contains affiliate links.

31,151 questions

40,705 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 63 views
1 answer 62 views
62 views asked Aug 5, 2022 by avibootz
1 answer 68 views
...