Scripting > Math Functions


Multiply by a Constant

multiply(floating-point constant)

 

Multiply the value constant to all valid values in the current time series or paired data set.  For time series data, missing values are kept as missing. 

For paired data, constant multiplies the y-values only.  Use the setCurveMethod to first select the paired data curve(s).

 

See also:  multiply(TimeSeriesMath tsData); setCurve()

Parameters:

constant  - A floating-point precision value.

Example: newDataSet = dataSet.multiply(1.5)

Returns: A new HecMath object of the same type as the current object.