Question about reduce?

What’s wrong with this?

julia> reduce(*, 1:100)
0

integer overflow.

3 Likes
julia> reduce(*, 1:big(100))
93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000
2 Likes

See Integers and Floating-Point Numbers · The Julia Language