API ReferenceNamespacesmathFunctionsavgOn this pageFunction: avg() avg<A, B>(a, b, c?, d?): f64 Mean of 2 to 4 values. Type Parameters A A B B Parameters a A b B c? f64 = NaN d? f64 = NaN Returns f64