zsh-users
 help / color / mirror / code / Atom feed
From: Ray Andrews <rayandrews@eastlink.ca>
To: Zsh Users <zsh-users@zsh.org>
Subject: loooong number
Date: Tue, 5 Jul 2022 08:19:21 -0700	[thread overview]
Message-ID: <c42a2cae-446c-1b8d-a388-edab69839a17@eastlink.ca> (raw)

Gentlemen:

I don't think zsh can do this but she does amaze very often so I'll ask:

My sister is memorizing Euler's number, she's at 200 digits and 
climbing.  She wants me to print it off in blocks of four digits. I 
can't find exactly that format online.  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.


             reply	other threads:[~2022-07-05 15:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-05 15:19 Ray Andrews [this message]
2022-07-05 15:27 ` Dominik Vogt
2022-07-05 15:37   ` Dominik Vogt
2022-07-05 15:37   ` Ray Andrews

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c42a2cae-446c-1b8d-a388-edab69839a17@eastlink.ca \
    --to=rayandrews@eastlink.ca \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).