Integer arithmetic, multiplication overflow
- From: Tomek <t.koziara@xxxxxxxxx>
- Date: Wed, 08 Jun 2005 20:07:11 +0100
Hi,
I trying to solve the following thing:
Having two finite precision unsigned integer numbers A and B,
and knowing that maximal represented number is X,
calculate A*B - X, in case of A*B overflow. Use only
basic algebraic operations.
Any hints welcome.
Thanks,
Tomek
.
- Follow-Ups:
- Re: Integer arithmetic, multiplication overflow
- From: JEMebius
- Re: Integer arithmetic, multiplication overflow
- From: Virgil
- Re: Integer arithmetic, multiplication overflow
- Prev by Date: Re: Playing dice with pi.
- Next by Date: Re: prove this statement with math?
- Previous by thread: Re: Playing dice with pi.
- Next by thread: Re: Integer arithmetic, multiplication overflow
- Index(es):
Relevant Pages
|