ulong Questions
4
Solved
I am building a DLL which will be used by C++ using COM.
Please let me know what would be the C# equivalent of C++ 64-bit unsigned long long.
Will it be ulong type in C# ?
Please confirm.
Thanks,...
Nevillenevin asked 17/9, 2013 at 13:47
3
Solved
Why does this assigning produce a comile error: Constant value '-2147483648' cannot be converted to a 'ulong' and I have to use unchecked (...) for this case?
ulong xDummy30 = (1 << 30); //...
3
Solved
3
Solved
I am trying to map a ulong to a long (and vice-versa), and a uint to a int (and vice-versa), as shown below - in order to save the values in a MS-SQL-database with signed types integer and biginteg...
Projector asked 1/12, 2016 at 0:20
1
Solved
I'm a little confused about the behavior of the ulong type. I understand it to be a 64-bit integer used for positive numbers (max value 18,446,744,073,709,551,615). I just started using it because ...
3
Solved
Is there a reason why I can't use the following code?
ulong test(int a, int b)
{
return a == b ? 0 : 1;
}
It shows me:
Cannot implicitly convert type 'int' to 'ulong'. An explicit conver...
Abstract asked 30/9, 2015 at 16:48
5
Solved
If i try with BitConverter,it requires a byte array and i don't have that.I have a Int32 and i want to convert it to UInt32.
In C++ there was no problem with that.
Doctrinal asked 27/3, 2009 at 5:36
1
Solved
In my C# program I'm receiving datetime from a PLC. It is sending data in "ulong" format.
How can I convert ulong to DateTime format?
for example I am receiving:
ulong timeN = 99844490909448899;//...
1
I am trying to calculate the Fibonacci sequence in C# in a very simple way, however when it comes to the higher numbers it bugs out and stops working by giving out wrong answers.
ulong num = 1;
ul...
4
Solved
What is the best way to combine two uints into a ulong in c#, setting the high/low uints.
I know bitshifting can do it, but I don't know the syntax, or there maybe other APIs to help like BitConve...
1
© 2022 - 2024 — McMap. All rights reserved.