mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2025-12-20 18:24:33 +08:00
Round the Float constant to avoid javascript floating precision point issues
This commit is contained in:
parent
18a5565b5c
commit
2aa4da0f58
@ -66,7 +66,7 @@ class FloatConstant:
|
|||||||
CATEGORY = "KJNodes/constants"
|
CATEGORY = "KJNodes/constants"
|
||||||
|
|
||||||
def get_value(self, value):
|
def get_value(self, value):
|
||||||
return (value,)
|
return (round(value, 6),)
|
||||||
|
|
||||||
class StringConstant:
|
class StringConstant:
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user