| 37 | |
| 38 | @comfy_node(name="LTXFloatToInt", description="Float To Int") |
| 39 | class FloatToInt: |
| 40 | @classmethod |
| 41 | def INPUT_TYPES(cls): |
| 42 | return {"required": {"a": ("FLOAT", {"default": 0.0})}} |
| 43 | |
| 44 | RETURN_TYPES = ("INT",) |
| 45 | FUNCTION = "op" |
| 46 | CATEGORY = "math/conversion" |
| 47 | |
| 48 | def op(self, a: float) -> tuple[int]: |
| 49 | return (round(a),) |
| 50 | |
| 51 | |
| 52 | @comfy_node(description="Image to CPU") |
nothing calls this directly
no outgoing calls
no test coverage detected