- May
- 13,202
- 180
What causes "overflow", as below, and can I anticipate it?
g:\projects\4utils\release> echo %@sterling[3249] | wc
Lines Words Chars
1 1 10003
g:\projects\4utils\release> echo %@sterling[3250] | wc
TCC: Overflow "(2 * acos(-1) * 3250) ** (1 / 2) * (3250 / exp(1)) ** 3250"
Lines Words Chars
1 15 60
Note: Sterling's formula, seen above in the error message, approximates
N-factorial. The result for N=3250 would have been 3-4 characters longer than
the result for 3249 (or about 10007 characters). Apparently I have run into
some limit I'm not aware of.
g:\projects\4utils\release> echo %@sterling[3249] | wc
Lines Words Chars
1 1 10003
g:\projects\4utils\release> echo %@sterling[3250] | wc
TCC: Overflow "(2 * acos(-1) * 3250) ** (1 / 2) * (3250 / exp(1)) ** 3250"
Lines Words Chars
1 15 60
Note: Sterling's formula, seen above in the error message, approximates
N-factorial. The result for N=3250 would have been 3-4 characters longer than
the result for 3249 (or about 10007 characters). Apparently I have run into
some limit I'm not aware of.