m3ter Calculation Engine - m3ter Documentation

Documentation Index

Fetch the complete documentation index at: /llms.txt

Use this file to discover all available pages before exploring further.

You can exploit the m3ter platform’s powerful Calculation Engine as you create calculations for Meter Derived Fields, Compound Aggregations, or Notification Rules. This topic gives details of the supported operators, variables, functions, and type casts available in the m3ter Calculation Engine. Links out to other topics giving specific details and examples of the various calculation contexts are also given:

Supported Operators, Variables, Functions, and Type Casts

Standard mathematical syntax and operators are supported:

Operators

Variables

Functions

Scale Parameter for Math Functions

For the Math.ceil(), Math.floor(), and Math.round() functions, you can use a second optional parameter to control scale:

Date Time Functions

Core Date Time Functions

Date Time Format Functions

Two date time format functions are available:

Symbol Meaning Examples
y week-based-year 1966; 96
M month-of-year 7; 07; Jul; July; J
d day-of-month 10
H hour-of-day 05
m minute-of-hour 31
s second-of-minute 55
S fraction-of-second 978

Type Casts

String Functions

Calculation Contexts

You can use the platform’s Calculation Engine when you create calculations in various calculation contexts: