Re: dc(1) exponent limits

Rob Pike <[email protected]> Tue, 17 Dec 2019 09:47:47 +1100
Newsgroups gmane.os.plan9.general
Message-ID <CAKzdPgyAwr8dj8ux9ndAp6E+wptgiX-1KdpTJBDEnn7-Ykmbug@mail.gmail.com>
In case it's not clear, those calculations are integral, only the
presentation looks like floats.

-rob


On Tue, Dec 17, 2019 at 9:46 AM Rob Pike <[email protected]> wrote:

> % ivy
> 652342**52342
> 1.85475753442e+304341
>
> )cpu
> 8.291ms
>
> (652342**52342)/34232342
> 9.27378767209e+304340/17116171
>
> )cpu
> 9.217ms
>
> float _
> 5.41814385477e+304333
>
>
> 50 minutes feels excessive; dc seems to work very hard.
>
> -rob
>
>

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Te871fd8fbfd16f42-Mc8abd46d24d49868ede159e4
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription