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 get min and max of Int64 and UInt64 in C#

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

using System;

class Program
{
    static void Main() {
        Console.WriteLine("range of {0} to {1}", Int64.MinValue, Int64.MaxValue);
        
        Console.WriteLine("range of {0} to {1}", UInt64.MinValue, UInt64.MaxValue);
    }
}




/*
run:

range of -9223372036854775808 to 9223372036854775807
range of 0 to 18446744073709551615

*/

 



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 159 views
159 views asked Aug 5, 2022 by avibootz
1 answer 82 views
1 answer 135 views
1 answer 99 views
99 views asked Jun 9, 2021 by avibootz
1 answer 133 views
...