Welcome to collectivesolver - Programming & Software Q&A with Examples. A website you can trust. All programs tested and work.

Contact: aviboots(AT)netvision.net.il

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

Teach Your Child To Read

Dental Dog Chews

GlucoTrust is a brand new, science-backed supplement that supports healthy blood sugar levels AND weight loss for men and women

Everything you need to sell anywhere

Managed VPS Hosting
Affordable. Secure. Your Own Virtual Private Hosting. Faster than AWS and Rackspace

Bonsai Boy of New York Bonsai Trees and Accessories

Disclosure We are a professional Programming & Software Q&A website, that receives compensation from some of the links whose we show you with Information. It means that my content may contain affiliate links.

24,887 questions

32,502 answers

573 users

How to use 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() {
        Int64 i64_1 = 483;
        Int64 i64_2 = -3982;

        UInt64 ui64_1= 392843;

        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());


483 is Int64
-3982 is Int64
392843 is UInt64



answered 2 days ago by avibootz
edited 2 days ago by avibootz