Note:
This documents the double-precision version of the routine.
Corresponding routines exist for other data types
(float, long, int,
short, byte).
n-element array with every element set to
valueconstant(5, 23.5) = [23.5, 23.5, 23.5, 23.5, 23.5]