Re: What's wrong with long long?
From: Andrey Tarasevich (andreytarasevich_at_hotmail.com)
Date: 06/16/04
- Next message: Jeremy Yallop: "Re: What's wrong with long long?"
- Previous message: Malcolm: "Re: What's wrong with long long?"
- In reply to: Malcolm: "Re: What's wrong with long long?"
- Next in thread: Chris Torek: "Re: What's wrong with long long?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 16 Jun 2004 10:54:16 -0700
Malcolm wrote:
>> ...
>> Why is long long not used so much?
>>
> A number must ultimately represent something in the real world. You seldom
> need a number above 4 billion, which is about the number of adults in the
> world. An exception is memory size, which can exceed 4GB on large systems
> and may soon be around that on desktop PCs, but in C we use size_t for
> amounts of memory.
Sometimes calculating a value from the "real world" requires a [short]
trip into the realm of "unreal". For example, calculating the Euclidean
distance between two point with "read world"s 'unsigned long'
coordinates might easily involve values that extend beyond 'unsigned
long' range.
-- Best regards, Andrey Tarasevich
- Next message: Jeremy Yallop: "Re: What's wrong with long long?"
- Previous message: Malcolm: "Re: What's wrong with long long?"
- In reply to: Malcolm: "Re: What's wrong with long long?"
- Next in thread: Chris Torek: "Re: What's wrong with long long?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|