Re: UnSigned Long
- From: "Alexei A. Frounze" <alexfru@xxxxxxx>
- Date: Tue, 30 Aug 2005 00:11:51 +0400
"Joriveek" <nojunk@xxxxxxxxxx> wrote in message
news:deunjb$ef8$1@xxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
>
> I want to store myvarz = 3000000000;
>
> I have declared myvarz as unsigned long; still not taking.
>
> I am using MSVC++ 6.0
I don't know what's not taking what, but long is at least 32-bit long, hence
unsigned long will fit your 3000000000 nicely.
But you'll have problems multiplying this number in integer arithmetics
(using longs only) by anything other than 1. If that's what you have, you
should probably use long long (or _int64 as per msvc++, which doesn't know
long long) or go for double or long double, which has more bits in mantissa
than simple long (up to 80 if I'm not mistaken are supported by x86/x87
FPU).
> Any help please urgent....
Alive yet? :)
Alex
.
- References:
- UnSigned Long
- From: Joriveek
- UnSigned Long
- Prev by Date: Re: Style isn't always religious
- Next by Date: Re: pointers
- Previous by thread: Re: UnSigned Long
- Next by thread: Re: UnSigned Long
- Index(es):