Block: Round/Floor/Ceiling ​
Type: io_math_round
Convert decimal numbers to whole numbers using different rounding strategies. Perfect for cleaning up sensor readings (23.7°F → 24°F), creating clean display values (3.14159 → 3), or preparing data for systems that only accept integers. Choose round for normal rounding, floor for always rounding down, or ceiling for always rounding up.
Fields ​
Operation ​
Choose how to convert your decimal to a whole number:
Round: Standard rounding: 0.5 or higher rounds up, below 0.5 rounds down (e.g., 23.7 → 24, 23.4 → 23, 23.5 → 24). Best for general use and displaying clean values.Floor: Always rounds down to the nearest whole number, regardless of decimal value (e.g., 23.9 → 23, 23.1 → 23). Perfect for counting items, time calculations, or when you need conservative estimates.Ceiling: Always rounds up to the nearest whole number, regardless of decimal value (e.g., 23.1 → 24, 23.9 → 24). Great for capacity planning, ensuring minimum values, or safety margins.
Inputs ​
Value ​
The decimal number you want to convert to a whole number. Examples: sensor readings like 72.8°F, calculated values like 3.14159, or any numerical data that needs to be simplified. Non-numeric values will be automatically converted to numbers where possible.
Compatible Blocks (click to expand)
Get Variable
Retrieve the value stored in a variable that was previously set using a Set Variable block.
Multiline Text
Create formatted text content with multiple lines, paragraphs, and line breaks.
Text
Enter any text content for use in your Actions - words, phrases, device commands, or messages.
Text Template
Create dynamic, personalized messages by combining static text with live data from your IoT system.
Join Text
Join two pieces of text into one combined string.
Text Compare
Compare two text values using different comparison operations.

Weather
Fetch the current or forecast weather conditions at the specified location.

Air Quality
Fetch current or forecast air quality conditions at the specified location using Open-Meteo Air Quality API.
Round/Floor/Ceiling
Convert decimal numbers to whole numbers using different rounding strategies.
Number
Enter any numerical value for use in your IoT Actions - whole numbers, decimals, positive, or negative.

Map
Transform sensor readings and data values by scaling them from one number range to another.

Constrain
Keep any number within specified minimum and maximum boundaries.
Compare Numbers
Build mathematical conditions by comparing any two numerical values in your Action logic.
Arithmetic
Perform mathematical calculations using sensor data, feed values, or any numbers in your Actions.

Logic Operation
Combine multiple conditions to create sophisticated decision logic in your Actions.
Negate
Flip any condition to its opposite - turns true into false and false into true.
Boolean
A simple true or false value for building logic conditions and controlling digital outputs.
Get Feed Value
Resolves to the last value of this feed or component, always a String.

JSONPath Query
Extract specific values from JSON data using JSONPath query syntax.