*X-seq*: zsh-users 27866*From*: Dominik Vogt <dominik.vogt@xxxxxx>*To*: zsh-users@xxxxxxx*Subject*: Re: loooong number*Date*: Tue, 5 Jul 2022 16:27:52 +0100*Archived-at*: <https://zsh.org/users/27866>*In-reply-to*: <c42a2cae-446c-1b8d-a388-edab69839a17@eastlink.ca>*List-id*: <zsh-users.zsh.org>*Mail-followup-to*: zsh-users@xxxxxxx*References*: <c42a2cae-446c-1b8d-a388-edab69839a17@eastlink.ca>*Reply-to*: dominik.vogt@xxxxxx

On Tue, Jul 05, 2022 at 08:19:21AM -0700, Ray Andrews wrote: > Now, the formula for the number is easy but the output > of course is going to be a floating point number of 200 and counting digits > which of course zsh can't handle. But it occurred to me that if the digits > could be computed one at a time (as we can do for pi), then the output could > be treated as a simple string to which digits are added indefinitely. I > guess this is really a mathematical question, strictly speaking, but > somebody might know. "bc" can do calculations in arbitrary precision: -- snip -- $ bc -l bc 1.07.1 Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006, 2008, 2012-2017 Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For details type `warranty'. scale=5 e(1) 2.71828 scale=200 e(1) 2.718281828459045235360287471352662497757247093699959574966967627724\ 07663035354759457138217852516642742746639193200305992181741359662904\ 357290033429526059563073813232862794349076323382988075319525101901 -- snip -- Ciao Dominik ^_^ ^_^ -- Dominik Vogt

**Follow-Ups**:**Re: loooong number***From:*Ray Andrews

**Re: loooong number***From:*Dominik Vogt

**References**:**loooong number***From:*Ray Andrews

Messages sorted by: Reverse Date, Date, Thread, Author