ComfyUI > Nodes > Basic data handling > is integer

ComfyUI Node: is integer

Class Name

Basic data handling: FloatIsInteger

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

is integer Description

Determines if a float is an integer, returning `True` for whole numbers and `False` otherwise.

is integer:

The FloatIsInteger node is designed to determine whether a given floating-point number is an integer. This node is particularly useful when you need to verify if a float value has no fractional component, effectively checking if it can be represented as a whole number. By providing a straightforward boolean result, this node helps you quickly ascertain the integer status of a float, which can be crucial in scenarios where precise numerical operations or validations are required. Its primary function is to evaluate the input float and return True if the number is an integer, and False otherwise, making it an essential tool for data validation and processing tasks.

is integer Input Parameters:

float_value

The float_value parameter represents the floating-point number that you want to check for integer status. This parameter is crucial as it directly influences the node's output by determining whether the input number has a fractional part. The default value for this parameter is 0.0, and it accepts any valid floating-point number. The node evaluates this input to decide if the number can be considered an integer, meaning it has no decimal component. Understanding the nature of the input float is essential, as it directly impacts the boolean result returned by the node.

is integer Output Parameters:

BOOLEAN

The output of the FloatIsInteger node is a boolean value, which indicates whether the input floating-point number is an integer. If the input number has no fractional part, the output will be True, signifying that the number is indeed an integer. Conversely, if there is any decimal component, the output will be False. This output is vital for decision-making processes where the distinction between whole numbers and non-integers is necessary, allowing you to implement logic based on the integer status of the input float.

is integer Usage Tips:

  • Use the FloatIsInteger node when you need to validate numerical inputs to ensure they are whole numbers, which can be particularly useful in scenarios involving counting or indexing.
  • Combine this node with other nodes that perform mathematical operations to filter or branch logic based on whether the results are integers, enhancing the robustness of your data processing workflows.

is integer Common Errors and Solutions:

Invalid Input Type

  • Explanation: The input provided is not a valid floating-point number, which can occur if the input is a string or another data type.
  • Solution: Ensure that the input to the float_value parameter is a valid float. Convert any non-float inputs to a float before passing them to the node.

Unexpected Output

  • Explanation: The node returns False when you expect True, or vice versa, which might happen if the input float has a very small fractional part due to floating-point precision issues.
  • Solution: Double-check the input value for any unintended fractional components. Consider rounding the input to a certain number of decimal places if precision issues are suspected.

is integer 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.