Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 986 Bytes

File metadata and controls

27 lines (16 loc) · 986 Bytes

Introduction

The Calculator operator is a WireCloud operator that allows to calculate a value of a formula which is set in settings with value which comes from input endpoint.

Settings

  • formula: Set a formula. It's able to use arithmetic operators, parentheses and 'A' for the input value. e.g. (100*A)+1
  • Action when an invalid value: Action when an invalid value received. Throw exception, remove value or pass through.
  • Math: Math function for roundfing off. No operation, Math.round, Math.floor, Math.ceil or Math.trunc.
  • Decimal point: Rounding digits, Integer, first decimal place, second decimal place or third decimal place.
  • Send Nulls: Enable this option to propagate null values, leave it disable to filter null events.

Wiring

Input Endpoints

  • Input : Number e.g. 123 or "123"

Output Endpoints

  • Output : Number calculated and rounded off e.g. 123

Usage

Reference