1. ## Quick question...

What is the largest value you can represent using a 256-bit unsigned integer? unsigned means non-negative correct?

2. 1.1579208923731619542357098500869e+77
Next time, get your calculator out and figure it out for yourself,#

3. Originally Posted by Salem
1.1579208923731619542357098500869e+77
Next time, get your calculator out and figure it out for yourself,#
I would if I knew how hence me having to ask. How did you do that?

4. A 256 bit data type There is currently no such thing. Most compilers support a 64 bit data type (long long or __int64). But a 256 bit data could have a range of approximately 1.1579208923731619542357098500869e+77 And yes, that is what unsigned means. Edit: 2 ^ 256. Not the XOR, the exponent.

5. Originally Posted by Tonto
A 256 bit data type There is currently no such thing. Most compilers support a 64 bit data type (long long or __int64). But a 256 bit data could have a range of approximately 1.1579208923731619542357098500869e+77 And yes, that is what unsigned means. Edit: 2 ^ 256. Not the XOR, the exponent.
Oh I get it now. But would it not be 2^256 - 1?

6. >How did you do that?
Assuming the Windows calculator, enter 2, then choose the x^y button, then enter 256 and hit the = button.

7. Betcha-you-have-to-explain-how-to-get-from-basic-to-scientific-mode

8. Or, if you want the exact value:

11579208923731619542357098500868790785326998466564 0564039457584007913129639935

9. Originally Posted by Salem
Betcha-you-have-to-explain-how-to-get-from-basic-to-scientific-mode
Wow. A little harsh don't ya think. We all have to start somewere. I more so was looking for help with the theory behind it.

Thanks for the help though,