ComfyUI > Nodes > Basic data handling > create INT

ComfyUI Node: create INT

Class Name

Basic data handling: IntCreate

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

create INT Description

IntCreate converts string inputs to integers, supporting binary, octal, and hexadecimal formats.

create INT:

The IntCreate node is designed to convert a string input into an integer, providing a straightforward way to handle numeric data in string format. This node is particularly useful when you need to process or manipulate numbers that are initially represented as strings, such as user inputs or data from external sources. It automatically interprets the string based on common numeric prefixes, allowing for binary, octal, and hexadecimal conversions without additional configuration. This feature simplifies the process of working with different numeric systems, making it a versatile tool for various data handling tasks.

create INT Input Parameters:

value

The value parameter is the string input that you wish to convert into an integer. This parameter accepts any string that represents a valid integer number. The string can include prefixes like 0b for binary, 0o for octal, and 0x for hexadecimal, which the node will automatically recognize and convert accordingly. The default value for this parameter is "0", which ensures that even if no input is provided, the node will return a valid integer. This parameter is crucial as it determines the integer output of the node.

create INT Output Parameters:

INT

The output of the IntCreate node is an integer, represented as INT. This output is the result of converting the input string into an integer, taking into account any numeric prefixes that indicate the base of the number. The integer output is essential for further numerical operations or data processing tasks, as it allows you to work with numeric data in its native form rather than as a string.

create INT Usage Tips:

  • Ensure that the input string is a valid representation of an integer to avoid conversion errors. Use prefixes like 0b, 0o, or 0x for binary, octal, and hexadecimal numbers, respectively.
  • Utilize this node to preprocess string data that needs to be converted into integers for calculations or data analysis, simplifying the workflow by handling different numeric bases automatically.

create INT Common Errors and Solutions:

ValueError: invalid literal for int() with base 0

  • Explanation: This error occurs when the input string is not a valid integer representation. It might contain invalid characters or be improperly formatted.
  • Solution: Verify that the input string is correctly formatted as an integer. Ensure that it does not contain any non-numeric characters and that any prefixes for binary, octal, or hexadecimal numbers are correctly used.

TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

  • Explanation: This error happens when the input value is None instead of a valid string.
  • Solution: Ensure that the input parameter value is always provided and is a valid string. Check the data source or input method to confirm that a string is being passed to the node.

create INT 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.

create INT