MCPcopy Create free account
hub / github.com/Lightricks/ComfyUI-LTXVideo / FloatToInt

Class FloatToInt

utiltily_nodes.py:39–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38@comfy_node(name="LTXFloatToInt", description="Float To Int")
39class 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")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected