Visit ComfyUI Online for ready-to-use ComfyUI environment
Align numbers to specified grid intervals for precision in computational and artistic applications.
The Number Multiple Of node is designed to help you ensure that a given number is a multiple of a specified integer. This node is particularly useful when you need to align numbers to a specific grid or interval, which can be essential in various computational and artistic applications. By using this node, you can automatically adjust any number to the nearest higher multiple of your chosen integer, ensuring consistency and precision in your work. This functionality is beneficial for tasks that require regular intervals or specific alignments, such as grid-based designs, animations, or procedural generation.
This parameter represents the number you want to adjust. It can be any numerical value that you need to align to a multiple of the specified integer. The function of this parameter is to serve as the base value that will be checked and potentially adjusted to the nearest multiple. There are no specific minimum or maximum values for this parameter, as it can be any valid number.
This parameter specifies the integer multiple to which you want to align the given number. The default value is 8, but you can set it to any integer within the range of -18446744073709551615 to 18446744073709551615. The function of this parameter is to define the interval or grid size to which the base number will be adjusted. Setting this parameter correctly ensures that your number aligns with the desired multiple, providing consistency in your numerical data.
This output provides the adjusted number, ensuring it is a multiple of the specified integer. If the input number is already a multiple of the specified integer, this output will be the same as the input number. This output is crucial for maintaining numerical consistency and alignment in your projects.
This output provides the adjusted number in floating-point format. It ensures that even if the input number is an integer, the output can be used in contexts where floating-point precision is required. This is useful for applications that need precise decimal values.
This output provides the adjusted number as an integer. It is particularly useful when you need the result to be in integer format for further calculations or operations that require whole numbers. This output ensures that the adjusted number is suitable for integer-specific applications.
multiple
parameter to set the interval or grid size that best fits your project requirements, ensuring that all numbers align consistently.multiple
parameter is set to a non-integer value or outside the valid range.multiple
parameter is an integer within the range of -18446744073709551615 to 18446744073709551615.multiple
parameter is set to zero, causing a division by zero error.multiple
parameter to a non-zero integer to avoid division by zero errors.© Copyright 2024 RunComfy. All Rights Reserved.