Signed/Unsigned data types

  • Thread starter Thread starter DGR
  • Start date Start date
D

DGR

I need to have a 32-bit bit variable and I need to assign the variable values
above the 32-bit signed limit (2,147,483,648).

Can anyone help me understand what type I want? I tried UInt32 but apparently
it is a structure and not just an unsigned 32-bit integer. Unfortunately I
can't use a long since it has to be 32 bits.

Thanks.
 
* (e-mail address removed) (DGR) scripsit:
I need to have a 32-bit bit variable and I need to assign the variable values
above the 32-bit signed limit (2,147,483,648).

Can anyone help me understand what type I want? I tried UInt32 but apparently
it is a structure and not just an unsigned 32-bit integer. Unfortunately I
can't use a long since it has to be 32 bits.

You can use a 'UInt32' for this purpose, but notice that you won't be
able to do calculations with variables of this type.
 
Hi DGR,

What exactly do you need to do? Any examples? or code that you'd <like> to
work, but doesn't? Or just a description.

Regards,
Fergus
 

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