ComfyUI Node: isdecimal

Class Name

Basic data handling: StringIsDecimal

Category
Basic/STRING/is
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

isdecimal Description

Determines if a string contains only decimal characters, returning `True` for valid numeric strings.

isdecimal:

The StringIsDecimal node is designed to determine whether all characters in a given string are decimal characters. This node is particularly useful when you need to validate that a string consists solely of characters that can be used to form decimal numbers, which includes digit characters and other characters that represent decimal numbers in various locales. The node returns True if the string meets these criteria and contains at least one character; otherwise, it returns False. This functionality is essential for ensuring data integrity when working with numeric strings in different cultural contexts, making it a valuable tool for AI artists who need to handle and validate numeric data within their creative projects.

isdecimal Input Parameters:

string

The string parameter is the input string that you want to check for decimal characters. It plays a crucial role in determining the outcome of the node's operation. The function evaluates whether all characters in this string are decimal characters. The default value for this parameter is an empty string (""). There are no specific minimum or maximum values for this parameter, as it accepts any string input. However, the string must contain at least one character to return True.

isdecimal Output Parameters:

BOOLEAN

The output of the StringIsDecimal node is a boolean value. This output indicates whether the input string consists entirely of decimal characters. A True value signifies that all characters in the string are decimal and that the string is not empty, while a False value indicates that the string either contains non-decimal characters or is empty. This output is crucial for validating numeric data and ensuring that strings meet specific criteria for decimal representation.

isdecimal Usage Tips:

  • Use the StringIsDecimal node to validate user input when you need to ensure that a string represents a valid decimal number, especially in applications that require numeric data entry.
  • Combine this node with other string validation nodes to create comprehensive data validation workflows, ensuring that strings meet multiple criteria before processing.

isdecimal Common Errors and Solutions:

Empty string input

  • Explanation: The input string is empty, which results in a False output because there are no characters to evaluate as decimal.
  • Solution: Ensure that the input string contains at least one character before passing it to the node.

Non-decimal characters in string

  • Explanation: The input string contains characters that are not decimal, leading to a False output.
  • Solution: Verify and clean the input string to remove any non-decimal characters before using the node.

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

isdecimal