Vettero

Number

Number operations for arithmetic, formatting, validation, and helpers.

Type

data-ops.number
Folderbasic/data-ops
Channels

Any

Pipe

Value

Scope

Any

Number (canvas label Number · plus the operation) runs one numeric Operation and writes the result to the data pipe. Invalid numbers (divide by zero, empty list for average, and similar) fail the block.

For a single formula such as (2 + 3) * 5, Evaluate Math is often enough. Use this block for rounding, currency, random integers, and list statistics.

Configure

SettingDescription
OperationGrouped list. Changing it resets the other fields
Remaining fieldsDepend on Operation (for example A, B, Number, Array)

Handles

HandleRole
In (target)Incoming connection
Out (source)Continues after the operation

Pipe schema

The next block reads this on the data pipe (pipe.value). The type depends on Operation: number, true/false, or text (conversion and formatting).

Operations

Core

OperationResultInputs
CreatenumberValue — convert to number
Is validtrue/falseValue — converts and is not NaN
Is finitetrue/falseNumber

Arithmetic

OperationResultInputs
Add / Subtract / Multiply / Divide / ModnumberA, B — divide and mod fail when B is 0
PowernumberBase, Exponent

Rounding

OperationResultInputs
Round / Floor / Ceil / TruncnumberNumber
Round to decimalsnumberNumber, Decimals (integer 0–100)

Comparison and range

OperationResultInputs
Equals / Greater than / Greater or equal / Less than / Less or equaltrue/falseA, B
Min / MaxnumberNumbers (list, at least one)
ClampnumberNumber, Min, Max
In rangetrue/falseNumber, Min, Max — inclusive

Math helpers and random

OperationResultInputs
Abs / Sqrt / Cbrt / Log / Log10 / ExpnumberNumber — sqrt needs ≥ 0; log needs > 0
RandomnumberNone — in [0, 1)
Random intnumberMin, Max — inclusive integers

Conversion and formatting

OperationResultInputs
To stringtextNumber
To fixedtextNumber, Digits
To precisiontextNumber, Precision
FormattextNumber, optional Locale, optional Intl options
CurrencytextNumber, Currency code (3-letter ISO, for example USD), optional Locale
PercentagetextNumber, optional Decimals — value 0.5 becomes 50.00%

Validation

Each takes Number and returns true/false: Is integer, Is float, Is even, Is odd, Is positive, Is negative.

List stats and interpolation

OperationResultInputs
Sum / Average / MediannumberArray of numbers
PercentilenumberArray, Percentile (0-100)
NormalizenumberNumber, Min, Max — scale to 0–1
LerpnumberA, B, T (0-1) — linear interpolation

Constants

No extra fields. Result is a number: PI, E, MAX_SAFE, MIN_SAFE.

Use case

  • Multiply quantity × price, then Currency for a message.
  • Round to decimals before writing a table number field.
  • Sum a list of amounts from Table Find.
Copyright © 2026