ComfyUI Node: floor

Class Name

Basic data handling: MathFloor

Category
Basic/maths
Author
StableLlama (Account age: 861days)
Extension
Basic data handling
Latest Updated
2026-05-07
Github Stars
0.04K

How to Install Basic data handling

Install this extension via the ComfyUI Manager by searching for Basic data handling
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Basic data handling in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

floor Description

MathFloor node rounds down numbers to the nearest integer, handling various input types.

floor:

The MathFloor node is designed to provide a straightforward mathematical operation that returns the largest integer less than or equal to a given number. This operation, known as the floor function, is particularly useful in scenarios where you need to round down a floating-point number to the nearest whole number. The node is versatile, accepting various input types such as integers, floats, and even strings that represent numerical values. By converting these inputs to a float and applying the floor function, it ensures that the output is always an integer, making it a reliable tool for tasks that require precise control over numerical data. This node is essential for AI artists and developers who need to manage and manipulate numerical data efficiently, ensuring that values are consistently rounded down in a predictable manner.

floor Input Parameters:

value

The value parameter is the primary input for the MathFloor node, representing the number you wish to apply the floor function to. This parameter can accept a variety of numerical formats, including integers, floating-point numbers, and strings that can be converted to numbers. The function of this parameter is to provide the numerical input that will be rounded down to the nearest integer. There are no explicit minimum or maximum values for this parameter, as it is designed to handle any valid numerical input. The default value is set to 0.0, which means if no input is provided, the node will return the floor of 0.0, which is 0. This flexibility allows users to input numbers in different formats without worrying about conversion issues, making it easy to integrate into various workflows.

floor Output Parameters:

IO.INT

The output parameter of the MathFloor node is of type IO.INT, which signifies that the result of the floor operation will always be an integer. This output represents the largest integer less than or equal to the input value. The importance of this output lies in its ability to provide a consistent and predictable integer result, which is crucial for tasks that require whole numbers, such as indexing, counting, or any operation where fractional values are not desired. By ensuring that the output is always an integer, the node helps maintain data integrity and simplifies further processing or analysis of numerical data.

floor Usage Tips:

  • When working with floating-point numbers that need to be rounded down to the nearest whole number, use the MathFloor node to ensure consistent results.
  • If you have numerical data in string format, you can input it directly into the MathFloor node, as it will automatically convert the string to a float before applying the floor function.

floor Common Errors and Solutions:

Invalid input type

  • Explanation: This error occurs when the input provided cannot be converted to a numerical value, such as a non-numeric string.
  • Solution: Ensure that the input is a valid number or a string that can be converted to a number. Avoid using non-numeric characters in the input.

OverflowError

  • Explanation: This error might occur if the input number is too large for the system to handle.
  • Solution: Check the input value to ensure it is within a reasonable range that the system can process. Consider breaking down large calculations into smaller parts if necessary.

floor Related Nodes

Go back to the extension to check out more related nodes.
Basic data handling
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

floor