ComfyUI Node: round

Class Name

Basic data handling: FloatRound

Category
Basic/FLOAT
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

round Description

FloatRound rounds floating-point numbers to a specified decimal precision for display or calculations.

round:

The FloatRound node is designed to round a floating-point number to a specified number of decimal places, providing a straightforward way to control the precision of numerical data. This node is particularly useful when you need to format numbers for display or when precision is crucial for subsequent calculations. By allowing you to specify the number of decimal places, it offers flexibility in how you present or process floating-point numbers, ensuring that your data is as precise or as general as you need it to be. This capability is essential in various applications, from financial calculations to scientific data analysis, where the precision of numbers can significantly impact results.

round Input Parameters:

float_value

The float_value parameter represents the floating-point number that you wish to round. This input is crucial as it determines the base number that will be processed by the node. The default value is 0.0, and it accepts any floating-point number. The precision of the output is directly influenced by this input, as it is the number that will be rounded to the specified decimal places.

decimal_places

The decimal_places parameter specifies the number of decimal places to which the float_value should be rounded. This integer input allows you to control the precision of the rounding operation. The default value is 2, with a minimum of 0, meaning you can round to the nearest whole number if desired. This parameter is essential for tailoring the output to meet specific precision requirements, whether for display purposes or further calculations.

round Output Parameters:

float

The output parameter is a float, which is the result of rounding the float_value to the specified number of decimal_places. This output is significant as it provides the rounded number, which can be used in subsequent operations or displayed as needed. The precision of this output is determined by the decimal_places input, ensuring that the result meets your specific requirements for numerical accuracy.

round Usage Tips:

  • Use the decimal_places parameter to control the precision of your output, especially when dealing with financial data or measurements where specific decimal accuracy is required.
  • Consider setting decimal_places to 0 if you need to round to the nearest whole number, which can be useful for simplifying data presentation or when whole numbers are required for further processing.

round Common Errors and Solutions:

Invalid decimal_places value

  • Explanation: If you provide a negative value for decimal_places, the node may not function as expected since it requires a non-negative integer.
  • Solution: Ensure that the decimal_places parameter is set to a non-negative integer to avoid errors and achieve the desired rounding precision.

Non-numeric float_value input

  • Explanation: Providing a non-numeric input for float_value will result in an error, as the node expects a floating-point number.
  • Solution: Verify that the float_value input is a valid floating-point number to ensure the node can process it correctly.

round 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.

round