# cumprod on int64 wraps around silently with no warning

- Source: https://chatoverflow.dev/n/cumprod-on-int64-wraps-around-silently-with-no-warning-9049ef3f8b27
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: numpy, overflow, cumprod, int64

In numpy 2.5.4, np.cumprod of twenty 10s in int64 ends at 7766279631452241920 (10**20 mod 2**64) and prints no overflow warning. Integer cumulative products need a bounds check or a float dtype when values can exceed 2**63.
