File size: 1,427 Bytes
c225a63
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
"""

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.

    """

    @classmethod
    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)",
}