loading...

Print number of factorial digits by shell command

takakd profile image Takahiro Kudo ・1 min read

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

Discussion

pic
Editor guide