Re: percentage
- From: "Heinrich Wolf" <invalid@xxxxxxxxxxxxxxx>
- Date: Thu, 21 Jul 2005 09:46:27 +0200
Hi,
maybe you have an overflow.
Integer (32 bit) range is -2.147.483.648 .. 2.147.483.647
If you e.g. subtract 2.5% from x = 100.000.000
by the formula dec(x, (25 * x) div 1000), you get an overflow,
unless you declare x to be int64.
Regards
Heiner
.
- References:
- percentage
- From: anthony
- percentage
- Prev by Date: Re: making a form transparent
- Next by Date: Re: http authentication
- Previous by thread: Re: percentage
- Next by thread: Threads
- Index(es):
Relevant Pages
|