Print number of factorial digits by shell command

takakd

Takahiro Kudo

Posted on December 27, 2019

Print number of factorial digits by shell command

Command to output the number of digits of factorial of 2.

# $(()): calc by arithmetic expressions
# wc: count the number of digits
$ echo -n $((2 ** 32)) | wc -c
Enter fullscreen mode Exit fullscreen mode
💖 💪 🙅 🚩
takakd
Takahiro Kudo

Posted on December 27, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related