# MethodError: no method matching binomial

Dear all,

How can I fix MethodError: no method matching binomial:

pr = 5.6783
for i = 1:round(pr/2)
n = 1/binomial(pr,i)
end

Best

Second, it is unclear what you are expecting from binomial when called with a Float64 and an Int; as Base.binomial is for calculating n \choose k. Perhaps you are interested in

Because there are almost infinitely many problems that people consider simple, and they can’t all be covered in Base and the standard libraries.