mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-10 04:21:45 +00:00
The small-k product also needs (1 - p)^(n - k) to stay a normal number; otherwise it returned 0 for BINOM.DIST(15,1100,0.5,FALSE) (exact 2.1367646606291324e-298) and the cumulative form built on it. Those cases now use the logarithmic formula. Reference grid gets k = 10..25 at n = 1100. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>