Skip to content

Numeric Operators

Fuuz Wiki Import edited this page Jun 7, 2026 · 1 revision

Numeric Operators

JSONata numeric operator reference for use in Fuuz transforms, validation expressions, and data flows.

+ (Addition)

The addition operator adds the operands to produce the numerical sum. It is an error if either operand is not a number.

Example

  • 5 + 2 => 7

- (Subtraction/Negation)

The subtraction operator subtracts the RHS value from the LHS value to produce the numerical difference. It is an error if either operand is not a number.

It can also be used in its unary form to negate a number.

Examples

  • 5 - 2 => 3
  • - 42 => -42

* (Multiplication)

The multiplication operator multiplies the operands to produce the numerical product. It is an error if either operand is not a number.

Example

  • 5 * 2 => 10

/ (Division)

The division operator divides the RHS into the LHS to produce the numerical quotient. It is an error if either operand is not a number.

Example

  • 5 / 2 => 2.5

% (Modulo)

The modulo operator divides the RHS into the LHS using whole number division to produce a whole number quotient and a remainder. This operator returns the remainder. It is an error if either operand is not a number.

Example

  • 5 % 2 => 1

.. (Range)

The sequence generation operator is used to create an array of monotonically increasing integers, starting with the number on the LHS and ending with the number on the RHS. It is an error if either operand does not evaluate to an integer. The sequence generator can only be used within an array constructor [].

Examples

  • [1..5] => [1, 2, 3, 4, 5]
  • [1..3, 7..9] => [1, 2, 3, 7, 8, 9]
  • [1..$count(Items)].("Item " & $) => ["Item 1", "Item 2", "Item 3"]
  • [1..5].($*$) => [1, 4, 9, 16, 25]

See Also


Source: support.fuuz.com

🏠 Home

Getting Started (14)
Training Guides (52)

Applications

Access & Users

Data Models & Schema

Screens

Weather Lookup Series — guided 3-part build

Data Flows & Integrations

Data, Reporting & Monitoring

Enterprise & Organizations

Platform Concepts & Architecture (10)
Screens & Application Design (17)
Data Models & Schema (8)
Data Flows & Scripting (51)

Designing Flows

Data Flow Nodes

JSONata Reference

Scripting

Integrations & Connectors (30)

General & iPaaS

Plex

EDI

IIoT & Edge Gateway (18)

Physical Device Connectors

Edge Data Connectors

Reporting, Documents & Dashboards (8)
Administration & Access Control (27)
Data Management (8)
Accelerators, Templates & Packages (8)
Design Standards (1)
How-To Guides (8)
FAQ & Troubleshooting (1)
Release Notes (117)

2026

2025

2024

2023

2022

2021

2020

Policies & Company (6)

Clone this wiki locally