HUGO
News Docs Themes Community GitHub

math.Product

Returns the product of all numbers. Accepts scalars, slices, or both.

Syntax

math.Product VALUE...

Returns

float64
{{ math.Product 1 (slice 2 3) 4 }} → 24

Last updated: January 1, 0001
Improve this page