Skip to content

fmul

Input Stack:
ts2: TimeSeriesExpr
ts1: TimeSeriesExpr
Output Stack:
(ts1 * ts2): TimeSeriesExpr
 

Floating point multiplication operator that follows strict IEEE 754 floating point arithmetic. Compute a new time series where each interval has the value (ts1 * ts2) where values are the corresponding intervals in the input time series.

Info

Note: :fmul is functionally equivalent to :mul as both handle NaN values using standard floating point rules. This variant exists for consistency with other floating point operators like :fadd and :fsub.

Parameters

  • ts1: First time series expression (left operand)
  • ts2: Second time series expression (right operand)

Examples

Multiplying by a constant value:

BeforeAfter
name,sps,:eq
name,sps,:eq,
1024,:fmul

Multiplying two time series:

BeforeAfter
name,requestLatency,:eq,
:sum,
name,requestsPerSecond,:eq,
:max,
(,name,),:by
name,requestLatency,:eq,
:sum,
name,requestsPerSecond,:eq,
:max,
(,name,),:by,
:fmul
  • :mul - Equivalent multiplication operation (same behavior as :fmul)
  • :fadd - Floating point addition
  • :fsub - Floating point subtraction
  • :fdiv - Floating point division