Float Constant(FloatConstant)
This node technically implements a simple floating-point constant generator
Float Constant
The Float Constant node technically implements a simple floating-point constant generator.
The Float Constant node is used to generate and output a constant floating-point value. Its core function is to provide a customizable, fixed floating-point number for other nodes in the workflow to call upon. This node serves as a foundational component for building complex parameter control logic.
Node Functionality
This node technically implements a simple floating-point constant generator. It accepts a floating-point number as input and passes it as output to downstream nodes. Internally, the node rounds the input value to six decimal places to ensure numerical precision and consistency.
Node Parameter Description - Float Constant
Control Parameters (Parameters)
| Parameter Name | Data Type | Required | Default Value | Range/Options | Description |
|---|---|---|---|---|---|
value | FLOAT | Yes | 0.0 | -18446744073709552000 - 18446744073709552000 (Step: 0.00001) | Output parameter value: Outputs the configured floating-point value. |
Output
| Parameter Name | Data Type | Description |
|---|---|---|
| value | FLOAT | Output parameter value: Outputs the configured floating-point value. |
Usage Scenarios
In practical applications, this node is commonly used to provide preset values for nodes that require floating-point parameters. For example, when controlling the sampling steps or the CFG scale for image generation, this node can be connected to set a fixed value, thereby simplifying parameter management within the workflow.
Float Constant Node Source Code Link
The Float Constant node is from the ComfyUI-KJNodes node package.
Comments
Sign in with GitHub to join the discussion.