Files
jtrue-ComfyUI-JaRue/jru_float2string.py
T
2023-12-07 22:03:27 -05:00

38 lines
781 B
Python

class Float2String_jru:
def __init__(self):
pass
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"float_a": ("FLOAT", {"forceInput":True,"default":1,"min": 0}),
}
}
RETURN_TYPES = ("STRING", )
FUNCTION = "fFloat2String"
CATEGORY = "JaRue"
def fFloat2String(self, float_a):
c = str(float_a)
return (c,)
# A dictionary that contains all nodes you want to export with their names
# NOTE: names should be globally unique
NODE_CLASS_MAPPINGS = {
"Float2String_jru": Float2String_jru
}
# A dictionary that contains the friendly/humanly readable titles for the nodes
NODE_DISPLAY_NAME_MAPPINGS = {
"Float2String_jru": "Convert Float to String"
}