Re: (geen onderwerp)
- From: "Rudy Velthuis" <newsgroups@xxxxxxxxxxxx>
- Date: Thu, 14 Dec 2006 12:20:09 +0000 (UTC)
Gert Baars wrote:
Then what if A and B are Int64's. Intermediate results
still can become too large.
Correct. A good programmer knows this and will either choose the
correct data type to do the calculations with (e.g. if Int64 is too
small, you choose one of the floating point types), or choose the order
of calculations thus that the results will fit.
You can't expect the compiler to do all the thinking for you, or even
to choose the correct types for you.
--
Rudy Velthuis http://rvelthuis.de/
"Don't stay in bed, unless you can make money in bed."
- George Burns (1896-1996)
.
- Follow-Ups:
- Re: (geen onderwerp)
- From: Erik
- Re: (geen onderwerp)
- References:
- (geen onderwerp)
- From: Gert Baars
- Re: (geen onderwerp)
- From: Gert Baars
- Re: (geen onderwerp)
- From: Rudy Velthuis
- Re: (geen onderwerp)
- From: Gert Baars
- (geen onderwerp)
- Prev by Date: Re: Once and for all! Fastest way to load large jpeg
- Next by Date: Re: Delphi's 2006 debugging abilities are sucking again
- Previous by thread: Re: (geen onderwerp)
- Next by thread: Re: (geen onderwerp)
- Index(es):
Relevant Pages
|