Re: int128_t
Re: int128_t
- Subject: Re: int128_t
- From: "Mark Wagner" <email@hidden>
- Date: Fri, 17 Oct 2008 12:07:35 -0700
On Fri, Oct 17, 2008 at 02:21, Paul Russell <email@hidden> wrote:
> Just out of curiosity, why do you think you need more than 64 bits for a
> financial application ?
>
> For example, take a large amount of money, say the US national debt, around
> 10 trillion dollars. Convert it to a currency with a high exchange rate,
> e.g. Japanese Yen at around 100 yen to the dollar, and just for the hell of
> it multiply by another 100 (to allow for inflation over the next year ;-)).
> That's 10^17, which needs log(17) / log(2) = 57 bits. Why do you think you
> need even more bits more than this ?
Take the US national debt, around 10 trillion dollars. Convert it to
a currency with a high exchange rate, e.g. the Zimbabwean Dollar at
around 2.5 trillion to the dollar as of July, and just for the hell of
it multiply by 100 (to allow for hyperinflation over the next month).
That's 10^28, which needs log(28) / log(2) = 93 bits. Why do you
think 128 bits will be enough?
As a side note, banking systems in Zimbabwe have been having trouble
with the large numbers involved.
--
Mark Wagner
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden