ComfyUI > Nodes > Basic data handling > create INT with base

ComfyUI Node: create INT with base

Class Name

Basic data handling: IntCreateWithBase

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 with base Description

Converts string numbers to integers using specified bases like binary, octal, or hexadecimal.

create INT with base:

The IntCreateWithBase node is designed to convert a string representation of a number into an integer, using a specified numerical base. This node is particularly useful when dealing with numbers in different bases, such as binary, octal, or hexadecimal, allowing you to seamlessly convert these string representations into integers for further processing. By specifying the base, you can ensure that the conversion is accurate and tailored to the format of the input string. This capability is essential for tasks that involve data parsing or manipulation where numbers are not always in the standard decimal format. The node simplifies the process of handling various numerical bases, making it a versatile tool in your data handling toolkit.

create INT with base Input Parameters:

value

The value parameter is a string that represents the number you wish to convert into an integer. This string must be a valid representation of a number in the specified base. The default value for this parameter is "0", which ensures that even if no input is provided, the node will still function and return a valid integer. The value parameter is crucial as it directly influences the output of the node, determining the integer that will be produced after conversion.

base

The base parameter specifies the numerical base of the input string. It determines how the string should be interpreted during the conversion process. The default base is 10, which corresponds to the decimal system. However, you can specify other bases, such as 2 for binary, 8 for octal, or 16 for hexadecimal. The minimum value for this parameter is 2, ensuring that the base is always valid for numerical conversion. The base parameter is essential for correctly interpreting the input string and producing the desired integer output.

create INT with base Output Parameters:

INT

The output of the IntCreateWithBase node is an integer, represented by the INT parameter. This integer is the result of converting the input string using the specified base. The output is crucial for any subsequent operations that require numerical data, as it provides a standardized integer format that can be easily manipulated or used in calculations. The INT output ensures that the conversion process is complete and accurate, reflecting the intended numerical value of the input string.

create INT with base Usage Tips:

  • Ensure that the input string is a valid representation of a number in the specified base to avoid conversion errors.
  • Use the base parameter to handle different numerical systems, such as binary or hexadecimal, by specifying the appropriate base value.

create INT with base Common Errors and Solutions:

ValueError: invalid literal for int() with base <base>

  • Explanation: This error occurs when the input string contains characters that are not valid for the specified base. For example, using letters beyond 'F' in a hexadecimal base or non-binary digits in a binary base.
  • Solution: Verify that the input string only contains valid characters for the specified base. Adjust the string or base as necessary to ensure compatibility.

create INT with base 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 with base