Download ComfyUI_INSTARAW/nodes/input_nodes/float_input.py from MarkLilly/mis-custom-nodes: direct link, hf CLI and curl.
- Browser
- Download file 1.43 kB
-
https://huggingface.co/MarkLilly/mis-custom-nodes/resolve/main/ComfyUI_INSTARAW/nodes/input_nodes/float_input.py
- Command line
-
hf download hf://MarkLilly/mis-custom-nodes/ComfyUI_INSTARAW/nodes/input_nodes/float_input.py
-
curl -L -o float_input.py https://huggingface.co/MarkLilly/mis-custom-nodes/resolve/main/ComfyUI_INSTARAW/nodes/input_nodes/float_input.py
1.43 kB
| """ | |
| INSTARAW Float Input Node | |
| A simple float input node with three decimal place precision. | |
| """ | |
| class INSTARAW_FloatInput: | |
| """ | |
| A simple float input node that accepts values with up to three decimal places. | |
| Useful for precise parameter control in workflows. | |
| """ | |
| def INPUT_TYPES(cls): | |
| return { | |
| "required": { | |
| "value": ("FLOAT", { | |
| "default": 0.000, | |
| "min": -999999.999, | |
| "max": 999999.999, | |
| "step": 0.001, | |
| "tooltip": "Float value with up to 3 decimal places precision", | |
| "display": "number", | |
| }), | |
| }, | |
| } | |
| RETURN_TYPES = ("FLOAT",) | |
| RETURN_NAMES = ("float",) | |
| FUNCTION = "output_float" | |
| CATEGORY = "INSTARAW/Input" | |
| DESCRIPTION = "Outputs a float value with up to three decimal places precision" | |
| def output_float(self, value): | |
| """ | |
| Returns the input float value. | |
| Args: | |
| value (float): The float value to output | |
| Returns: | |
| tuple: A tuple containing the float value | |
| """ | |
| return (value,) | |
| NODE_CLASS_MAPPINGS = { | |
| "INSTARAW_FloatInput": INSTARAW_FloatInput, | |
| } | |
| NODE_DISPLAY_NAME_MAPPINGS = { | |
| "INSTARAW_FloatInput": "🔢 INSTARAW Float Input (3 decimals)", | |
| } | |