Int64

  • Thread starter Thread starter Peter Larsen []
  • Start date Start date
Hi!
How do i combine two 32 bit integers into one int64 in .net/C# ??

Int64 a, b, Result;
int a1, b1;
b1 = 1;
a1 = 2;
Result = (((Int64)a1) << 32) + b1;
Text = Result.ToString();

Regards!
Atmapuri
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top