I run the AWK code and I get
The factorial of 200 is inf
This suggests me that AWK does not use the same int IEEE-standard -module as Python.
It seems that AWK’s limit is 170!.
How can you make AWK understand as large integers as Python?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From here:
Python can have integers of any length, depending on available memory. This is independent of IEEE 754. BTW, that standard gives the limit of a double precision float at about 10^(+/-308). The value of log10(factorial(171)) is > 309. See also Double Precision and What Every Scientist Should Know About Floating-Point Arithmetic.